Info
paciops opened this issue · 1 comments
paciops commented
Could be possible use
var dns = require('dns');
dns.lookup('www.google.com', function onLookup(err, addresses, family) {
console.log('addresses:', addresses);
});
instead of use
host google.com | iponmap -c
?
nogizhopaboroda commented
No, sorry, it was the initial idea of this tool that you can use it unix way.
But you can create new script out of your code:
//lookup.js
var dns = require('dns');
dns.lookup('www.google.com', function onLookup(err, addresses, family) {
console.log('addresses:', addresses);
});
and then:
node lookup.js | iponmap -c