Skip to content

Instantly share code, notes, and snippets.

@cfg
Created June 17, 2014 19:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cfg/f60b71a2fd803149a632 to your computer and use it in GitHub Desktop.
Save cfg/f60b71a2fd803149a632 to your computer and use it in GitHub Desktop.
Hack to dump a dyndns zone in pseudo-BIND format.
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