dnsResolve: switch to `dns.lookup()`

Matches node-core's net.js this way. Probably a faster lookup I'd assume...
isInNet: properly implement the `isInNet()` function

Using "node-netmask" to do the netmasking calculation.