org.xbill.DNS
Class FindServer
java.lang.Object
|
+--org.xbill.DNS.FindServer
- public class FindServer
- extends Object
A helper class that tries to locate name servers and the search path to
be appended to unqualified names. Currently, this works if either the
appropriate properties are set, the OS has a unix-like /etc/resolv.conf,
or the system is Windows based with ipconfig or winipcfg. There is no
reason for these routines to be called directly except * curiosity.
|
Method Summary |
static Name[] |
searchPath()
Returns all entries in the located search path |
static String |
server()
Returns the first located server |
static String[] |
servers()
Returns all located servers |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
servers
public static String[] servers()
- Returns all located servers
server
public static String server()
- Returns the first located server
searchPath
public static Name[] searchPath()
- Returns all entries in the located search path