Skip to content

Instantly share code, notes, and snippets.

@andris9
Created November 11, 2019 20:34
Show Gist options
  • Save andris9/45d213db361219c67e001082cdb65d87 to your computer and use it in GitHub Desktop.
Save andris9/45d213db361219c67e001082cdb65d87 to your computer and use it in GitHub Desktop.
const dns = require('dns').promises;
// domain list to process
let domains = [
'neti.ee',
'hot.ee',
'zone.ee',
'telia.ee',
'a.ee',
'delfi.ee',
'postimees.ee',
'nali.ee'
];
async function main() {
let results = [];
for (let domain of domains) {
try {
let ret = await dns.resolveAny(domain);
console.log(domain, ret);
} catch (err) {
console.error(domain, err);
}
}
}
main();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment