lookup method
Resolves a hostname (e.g. 'nodejs.org') into the first found IPv4 or IPv6 record.
If options.verbatim
is true
then results are returned in the order
the DNS resolver returned them.
callback
's signature depends on the value of options.all
.
See also:
Implementation
external void lookup(
String hostname, DNSLookupOptions options, Function callback);