Package org.xbill.DNS.config
Class PropertyResolverConfigProvider
java.lang.Object
org.xbill.DNS.config.BaseResolverConfigProvider
org.xbill.DNS.config.PropertyResolverConfigProvider
- All Implemented Interfaces:
ResolverConfigProvider
- Direct Known Subclasses:
FallbackPropertyResolverConfigProvider
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 Summary
FieldsFields inherited from class org.xbill.DNS.config.BaseResolverConfigProvider
log, searchlist -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidInitializes the servers, search paths, etc.protected voidinitialize(String serverName, String searchName, String ndotsName) Initializes the servers, search path and ndots setting with from the property names passed as the arguments.intndots()Gets the threshold for the number of dots which must appear in a name before it is considered absolute.Methods inherited from class org.xbill.DNS.config.BaseResolverConfigProvider
addNameserver, addSearchPath, parseNdots, parseSearchPathList, reset, searchPaths, serversMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xbill.DNS.config.ResolverConfigProvider
isEnabled
-
Field Details
-
DNS_SERVER_PROP
- See Also:
-
DNS_SEARCH_PROP
- See Also:
-
DNS_NDOTS_PROP
- See Also:
-
-
Constructor Details
-
PropertyResolverConfigProvider
public PropertyResolverConfigProvider()
-
-
Method Details
-
initialize
public void initialize()Description copied from interface:ResolverConfigProviderInitializes the servers, search paths, etc. -
initialize
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 serverssearchName- the property name for the search pathndotsName- the property name for the ndots setting- Since:
- 3.2
-
ndots
public int ndots()Description copied from interface:ResolverConfigProviderGets 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.
-