Created
November 11, 2019 20:34
-
-
Save andris9/45d213db361219c67e001082cdb65d87 to your computer and use it in GitHub Desktop.
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').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