Skip to content

Instantly share code, notes, and snippets.

@ml4den
Created March 16, 2019 10:47
Show Gist options
  • Select an option

  • Save ml4den/7878fe68a321641fe3d1d42c42489387 to your computer and use it in GitHub Desktop.

Select an option

Save ml4den/7878fe68a321641fe3d1d42c42489387 to your computer and use it in GitHub Desktop.
Resolve DNS Resords in JavaScript
const dns = require('dns');
var callback = function (err, data) {
if (err) return console.error(err);
console.log(data);
};
dns.resolveTxt("example.com",callback)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment