Skip to content

Instantly share code, notes, and snippets.

@aquilax
Created August 19, 2018 05:13
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 aquilax/7e00b26d9bdf372bd2032c53b620b23c to your computer and use it in GitHub Desktop.
Save aquilax/7e00b26d9bdf372bd2032c53b620b23c to your computer and use it in GitHub Desktop.
Rough Rackspace DNS to bind translator
copy(r.records.reduce((a, row) => {
let line = [
row['name'] + '.',
row['ttl'],
'IN',
row['type'],
'"' + row['data'] + '"',
].join("\t");
a.push(line);
return a;
}, []).join("\n"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment