org.xbill.DNS
Class ResolverConfig

java.lang.Object
  extended by org.xbill.DNS.ResolverConfig

public class ResolverConfig
extends Object

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.

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, Yannick Meudal

Constructor Summary
ResolverConfig()
           
 
Method Summary
static ResolverConfig getCurrentConfig()
          Gets the current configuration
static void refresh()
          Gets the current configuration
 Name[] searchPath()
          Returns all entries in the located search path
 String server()
          Returns the first located server
 String[] servers()
          Returns all located servers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResolverConfig

public ResolverConfig()
Method Detail

servers

public String[] servers()
Returns all located servers


server

public String server()
Returns the first located server


searchPath

public Name[] searchPath()
Returns all entries in the located search path


getCurrentConfig

public static ResolverConfig getCurrentConfig()
Gets the current configuration


refresh

public static void refresh()
Gets the current configuration