Created
June 17, 2014 19:23
-
-
Save cfg/f60b71a2fd803149a632 to your computer and use it in GitHub Desktop.
Hack to dump a dyndns zone in pseudo-BIND format.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery('#adv3 tr.notranslate').each( function( i, el ) { | |
el = jQuery( el ); | |
dom = el.find('td').eq(0).text(); | |
ttl = el.find('td').eq(1).find('input').val(); | |
type = el.find('td').eq(2).text().trim(); | |
val = el.find('td').eq(3).find('input').val(); | |
console.log( "%s\t\t%s\tIN %s\t%s", dom, ttl, type, val ); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment