Package io.netty.resolver.dns
package io.netty.resolver.dns
An alternative to Java's built-in domain name lookup mechanism that resolves a domain name asynchronously,
which supports the queries of an arbitrary DNS record type as well.
-
ClassDescriptionCache which stores the nameservers that should be used to resolve a specific hostname.Combines two
DnsQueryLifecycleObserverinto a singleDnsQueryLifecycleObserver.Combines twoDnsQueryLifecycleObserverFactoryinto a singleDnsQueryLifecycleObserverFactory.Default implementation ofAuthoritativeDnsServerCache, backed by aConcurrentMap.Default implementation ofDnsCache, backed by aConcurrentMap.Default implementation of aDnsCnameCache.ADnsServerAddressStreamProviderwhich will use predefined default DNS servers to use for DNS resolution.A cache for DNS resolution entries.Represents the results from a previous DNS query which can be cached.A cache forCNAMEs.A metadata carrier exception, to propagateDnsResponseCodeinformation as an enrichment within theUnknownHostExceptioncause.A DNS-basedInetNameResolver.ADnsNameResolverbuilder.Strategy that influence howChannels are used during queries.ARuntimeExceptionraised whenDnsNameResolverfailed to perform a successful query.ADnsNameResolverExceptionraised whenDnsNameResolverfailed to perform a successful query because of an timeout.This interface provides visibility into individual DNS queries.Used to generate new instances ofDnsQueryLifecycleObserver.Provides an infinite sequence of DNS server addresses toDnsNameResolver.An infinite stream of DNS server addresses.Provides an opportunity to override whichDnsServerAddressStreamis used to resolve a specific hostname.Utility methods related toDnsServerAddressStreamProvider.An infinite stream of DNS server addresses, that requests feedback to be returned to it.ADnsQueryLifecycleObserverFactorythat enables detailed logging in theDnsNameResolver.ADnsServerAddressStreamProviderwhich iterates through a collection ofDnsServerAddressStreamProvideruntil the first non-nullresult is found.SpecialComparatorimplementation to sort the nameservers to use when follow redirects.A noopAuthoritativeDnsServerCachethat actually never caches anything.A noop DNS cache that actually never caches anything.AAddressResolverGroupofDnsNameResolvers that supports random selection of destination addresses if multiple are provided by the nameserver.ADnsServerAddressStreamProviderwhich is backed by a sequential list of DNS servers.ADnsServerAddressStreamProviderwhich always uses a single DNS server for resolution.Able to parse files such as /etc/resolv.conf and /etc/resolver to respect the system default domain servers.