| A class that tries to locate name servers and the search path to
be appended to unqualified names.
The following are attempted, in order, until one succeeds.
- The properties 'dns.server' and 'dns.search' (comma delimited lists)
are checked. The servers can either be IP addresses or hostnames
(which are resolved using Java's built in DNS support).
- The sun.net.dns.ResolverConfiguration class is queried.
- On Unix, /etc/resolv.conf is parsed.
- On Windows, ipconfig/winipcfg is called and its output parsed. This
may fail for non-English versions on Windows.
- "localhost" is used as the nameserver, and the search path is empty.
These routines will be called internally when creating Resolvers/Lookups
without explicitly specifying server names, and can also be called
directly if desired.
author: Brian Wellington author: Yannick Meudal |