code-dumps/nodejs/dnslookup.js

3 lines
121 B
JavaScript

const dns = require('dns');
dns.lookup('blog.headdesk.me', (err,address,family) => console.log('results: %s', address));