Asynchronous Domain Name System (DNS) methods.

Static methods

staticlookup (hostname:String, ?lookupOptions:DnsLookupOptions, callback:Callback<Array<Address>>):Void

Looks up the given hostname. callback will be called once the operation completes. In case of success, the data given to callback is an array of nusys.net.Address instances representing all the IP addresses found associated with the hostname.

  • lookupOptions.family - if not null, only addresses of the given IP family will be returned.

staticreverse (ip:Address, callback:Callback<Array<String>>):Void

Looks up a reverse DNS entry for the given ip.