| Modifier and Type | Field and Description |
|---|---|
| private final DnsServerAddresses | |
| private static final String | |
| private final Map | |
| private static final String | |
| private static final String | |
| private static final InternalLogger | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final Pattern |
| Access | Constructor and Description |
|---|---|
| public | UnixResolverDnsServerAddressStreamProvider(File etcResolvConf, File...
List of files of the format defined in
/etc/resolver. etcResolverFiles)Parse a file of the format /etc/resolv.conf which may contain the default DNS server to use, and also overrides for individual domains. |
| public | UnixResolverDnsServerAddressStreamProvider(String etcResolvConf, String
Directory containing files of the format defined in
/etc/resolver. etcResolverDir)Parse a file of the format /etc/resolv.conf which may contain the default DNS server to use, and also overrides for individual domains. |
| Modifier and Type | Method and Description |
|---|---|
| private boolean | |
| public DnsServerAddressStream | nameServerAddressStream(String
The hostname for which to lookup the DNS server addressed to use.
If this is the final hostname)DnsServerAddressStreamProvider to be queried then generally empty
string or '.' correspond to the default DnsServerAddressStream.Implements io. hostname.
|
| private static Map | |
| pack-priv static UnixResolverOptions | Returns: The options values provided by /etc/resolve.conf.Parse /etc/resolv.conf and return options of interest, namely: timeout, attempts and ndots. |
| pack-priv static UnixResolverOptions | Returns: The options values provided by /etc/resolve.conf.a file of the format /etc/resolv.conf. etcResolvConf)Parse a file of the format /etc/resolv.conf and return options of interest, namely: timeout, attempts and ndots. |
| pack-priv static List | Returns: List of search domains.Parse a file of the format /etc/resolv.conf and return the list of search domains found in it or an empty list if not found. |
| pack-priv static List | Returns: List of search domains.a file of the format /etc/resolv.conf. etcResolvConf)Parse a file of the format /etc/resolv.conf and return the list of search domains found in it or an empty list if not found. |
| private static int | |
| private static void | |
| pack-priv static DnsServerAddressStreamProvider | parseSilently()
Attempt to parse |
| private static void | putIfAbsent(Map<String, DnsServerAddresses> domainToNameServerStreamMap, String domainName, List<InetSocketAddress> addresses, boolean rotate)
|
| private static void | putIfAbsent(Map<String, DnsServerAddresses> domainToNameServerStreamMap, String domainName, DnsServerAddresses addresses)
|
| defaultNameServerAddresses | back to summary |
|---|---|
| private final DnsServerAddresses defaultNameServerAddresses | |
| DOMAIN_ROW_LABEL | back to summary |
|---|---|
| private static final String DOMAIN_ROW_LABEL | |
| domainToNameServerStreamMap | back to summary |
|---|---|
| private final Map<String, DnsServerAddresses> domainToNameServerStreamMap | |
| ETC_RESOLV_CONF_FILE | back to summary |
|---|---|
| private static final String ETC_RESOLV_CONF_FILE | |
| ETC_RESOLVER_DIR | back to summary |
|---|---|
| private static final String ETC_RESOLVER_DIR | |
| logger | back to summary |
|---|---|
| private static final InternalLogger logger | |
| NAMESERVER_ROW_LABEL | back to summary |
|---|---|
| private static final String NAMESERVER_ROW_LABEL | |
| OPTIONS_ROTATE_FLAG | back to summary |
|---|---|
| private static final String OPTIONS_ROTATE_FLAG | |
| OPTIONS_ROW_LABEL | back to summary |
|---|---|
| private static final String OPTIONS_ROW_LABEL | |
| PORT_ROW_LABEL | back to summary |
|---|---|
| private static final String PORT_ROW_LABEL | |
| RES_OPTIONS | back to summary |
|---|---|
| private static final String RES_OPTIONS | |
| SEARCH_ROW_LABEL | back to summary |
|---|---|
| private static final String SEARCH_ROW_LABEL | |
| SORTLIST_ROW_LABEL | back to summary |
|---|---|
| private static final String SORTLIST_ROW_LABEL | |
| WHITESPACE_PATTERN | back to summary |
|---|---|
| private static final Pattern WHITESPACE_PATTERN | |
| UnixResolverDnsServerAddressStreamProvider | back to summary |
|---|---|
| public UnixResolverDnsServerAddressStreamProvider(File etcResolvConf, File... etcResolverFiles) throws IOException Parse a file of the format /etc/resolv.conf which may contain the default DNS server to use, and also overrides for individual domains. Also parse list of files of the format /etc/resolver which may contain multiple files to override the name servers used for multiple domains.
| |
| UnixResolverDnsServerAddressStreamProvider | back to summary |
|---|---|
| public UnixResolverDnsServerAddressStreamProvider(String etcResolvConf, String etcResolverDir) throws IOException Parse a file of the format /etc/resolv.conf which may contain the default DNS server to use, and also overrides for individual domains. Also parse a directory of the format /etc/resolver which may contain multiple files to override the name servers used for multiple domains.
| |
| mayOverrideNameServers | back to summary |
|---|---|
| private boolean mayOverrideNameServers() | |
| nameServerAddressStream | back to summary |
|---|---|
| public DnsServerAddressStream nameServerAddressStream(String hostname) Implements io. Doc from io. Ask this provider for the name servers to query for
| |
| parse | back to summary |
|---|---|
| private static Map | |
| parseEtcResolverOptions | back to summary |
|---|---|
| pack-priv static UnixResolverOptions parseEtcResolverOptions() throws IOException Parse /etc/resolv.conf and return options of interest, namely: timeout, attempts and ndots.
| |
| parseEtcResolverOptions | back to summary |
|---|---|
| pack-priv static UnixResolverOptions parseEtcResolverOptions(File etcResolvConf) throws IOException Parse a file of the format /etc/resolv.conf and return options of interest, namely: timeout, attempts and ndots.
| |
| parseEtcResolverSearchDomains | back to summary |
|---|---|
| pack-priv static List Parse a file of the format /etc/resolv.conf and return the list of search domains found in it or an empty list if not found.
| |
| parseEtcResolverSearchDomains | back to summary |
|---|---|
| pack-priv static List Parse a file of the format /etc/resolv.conf and return the list of search domains found in it or an empty list if not found.
| |
| parseResIntOption | back to summary |
|---|---|
| private static int parseResIntOption(String opt, String fullLabel) | |
| parseResOptions | back to summary |
|---|---|
| private static void parseResOptions(String line, UnixResolverOptions. | |
| parseSilently | back to summary |
|---|---|
| pack-priv static DnsServerAddressStreamProvider parseSilently() Attempt to parse | |
| putIfAbsent | back to summary |
|---|---|
| private static void putIfAbsent(Map<String, DnsServerAddresses> domainToNameServerStreamMap, String domainName, List<InetSocketAddress> addresses, boolean rotate) | |
| putIfAbsent | back to summary |
|---|---|
| private static void putIfAbsent(Map<String, DnsServerAddresses> domainToNameServerStreamMap, String domainName, DnsServerAddresses addresses) | |