Node.js dns resolve()
resolve()
var dns=require('dns'), domain='google.com'; dns.resolve('google.com', function(err, addresses){ if (err) throw err; console.log('domain %s resolved in', domain); console.dir(addresses);//from ww w . j ava 2 s . c o m });