Created
March 16, 2019 10:47
-
-
Save ml4den/7878fe68a321641fe3d1d42c42489387 to your computer and use it in GitHub Desktop.
Resolve DNS Resords in JavaScript
This file contains hidden or 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
| 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