Lookup your
/etc/hosts
$ npm install --save hosts-lookup
var hostsLookup = require('hosts-lookup');
hostsLookup('crazy-cat')
.then(console.log) // => ip is value from `hosts` if found.
.catch(console.error)
P.S: This module was created as a result of this issue.
MIT © Hemanth.HM