The net/dns library provides utilities for looking up hostnames.
Thanks to Eduardo Cavazos and Jason Crowe for repairs and improvements.
Consults the specified nameserver (normally a numerical address like "188.8.131.52") to obtain a numerical address for the given Internet address.
The query record sent to the DNS server includes the "recursive" bit, but dns-get-address also implements a recursive search itself in case the server does not provide this optional feature.
Consults the specified nameserver (normally a numerical address like "184.108.40.206") to obtain a name for the given numerical address.
Consults the specified nameserver to obtain the address for a mail exchanger the given mail host address. For example, the mail exchanger for "ollie.cs.rice.edu" might be "cs.rice.edu".
Attempts to find the address of a nameserver on the present system. Under Unix, this procedure parses "/etc/resolv.conf" to extract the first nameserver address. Under Windows, it runs nslookup.exe.
|dns@ : unit?|
Imports nothing, exports dns^.
|dns^ : signature|
Includes everything exported by the net/dns module.