Class PropertyResolverConfigProvider

java.lang.Object
org.xbill.DNS.config.BaseResolverConfigProvider
org.xbill.DNS.config.PropertyResolverConfigProvider
All Implemented Interfaces:
ResolverConfigProvider
Direct Known Subclasses:
FallbackPropertyResolverConfigProvider

public class PropertyResolverConfigProvider extends BaseResolverConfigProvider
The properties DNS_SERVER_PROP, DNS_SEARCH_PROP (comma delimited lists) are checked. The servers can either be IP addresses or hostnames (which are resolved using Java's built in DNS support).
  • Field Details

  • Constructor Details

    • PropertyResolverConfigProvider

      public PropertyResolverConfigProvider()
  • Method Details

    • initialize

      public void initialize()
      Description copied from interface: ResolverConfigProvider
      Initializes the servers, search paths, etc.
    • initialize

      protected void initialize(String serverName, String searchName, String ndotsName)
      Initializes the servers, search path and ndots setting with from the property names passed as the arguments.
      Parameters:
      serverName - the property name for the DNS servers
      searchName - the property name for the search path
      ndotsName - the property name for the ndots setting
      Since:
      3.2
    • ndots

      public int ndots()
      Description copied from interface: ResolverConfigProvider
      Gets the threshold for the number of dots which must appear in a name before it is considered absolute. If the interface implementation does not override this, the default implementation returns 1.