public class PropertyResolverConfigProvider extends Object
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).Modifier and Type | Field and Description |
---|---|
static String |
DNS_NDOTS_PROP |
static String |
DNS_SEARCH_PROP |
static String |
DNS_SERVER_PROP |
Constructor and Description |
---|
PropertyResolverConfigProvider() |
Modifier and Type | Method and Description |
---|---|
void |
initialize()
Initializes the servers, search paths, etc.
|
int |
ndots()
Gets the threshold for the number of dots which must appear in a name before it is considered
absolute.
|
List<Name> |
searchPaths()
Returns all entries in the located search path, which may be empty.
|
List<InetSocketAddress> |
servers()
Returns all located servers, which may be empty.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isEnabled
public static final String DNS_SERVER_PROP
public static final String DNS_SEARCH_PROP
public static final String DNS_NDOTS_PROP
public void initialize()
ResolverConfigProvider
public int ndots()
ResolverConfigProvider
-1
, meaning this provider does not supported reading the ndots
configuration.public final List<InetSocketAddress> servers()
ResolverConfigProvider
servers
in interface ResolverConfigProvider
public final List<Name> searchPaths()
ResolverConfigProvider
searchPaths
in interface ResolverConfigProvider
Copyright © 2020 dnsjava.org. All rights reserved.