Package | Description |
---|---|
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.
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultDnsServerAddressStreamProvider
A
DnsServerAddressStreamProvider which will use predefined default DNS servers to use for DNS resolution. |
class |
MultiDnsServerAddressStreamProvider
A
DnsServerAddressStreamProvider which iterates through a collection of
DnsServerAddressStreamProvider until the first non-null result is found. |
class |
SingletonDnsServerAddressStreamProvider
A
DnsServerAddressStreamProvider which always uses a single DNS server for resolution. |
class |
UnixResolverDnsServerAddressStreamProvider
Able to parse files such as /etc/resolv.conf and
/etc/resolver to respect the system default domain servers.
|
Modifier and Type | Method and Description |
---|---|
static DnsServerAddressStreamProvider |
UnixResolverDnsServerAddressStreamProvider.parseSilently()
Attempt to parse
/etc/resolv.conf and files in the /etc/resolver directory by default. |
static DnsServerAddressStreamProvider |
DnsServerAddressStreamProviders.platformDefault()
A
DnsServerAddressStreamProvider which inherits the DNS servers from your local host's configuration. |
Modifier and Type | Method and Description |
---|---|
DnsNameResolverBuilder |
DnsNameResolverBuilder.nameServerProvider(DnsServerAddressStreamProvider dnsServerAddressStreamProvider)
Set the
DnsServerAddressStreamProvider which is used to determine which DNS server is used to resolve
each hostname. |
protected NameResolver<InetAddress> |
DnsAddressResolverGroup.newNameResolver(EventLoop eventLoop,
ChannelFactory<? extends DatagramChannel> channelFactory,
DnsServerAddressStreamProvider nameServerProvider)
Creates a new
NameResolver . |
protected AddressResolver<InetSocketAddress> |
DnsAddressResolverGroup.newResolver(EventLoop eventLoop,
ChannelFactory<? extends DatagramChannel> channelFactory,
DnsServerAddressStreamProvider nameServerProvider)
|
Constructor and Description |
---|
DnsAddressResolverGroup(ChannelFactory<? extends DatagramChannel> channelFactory,
DnsServerAddressStreamProvider nameServerProvider) |
DnsAddressResolverGroup(Class<? extends DatagramChannel> channelType,
DnsServerAddressStreamProvider nameServerProvider) |
DnsNameResolver(EventLoop eventLoop,
ChannelFactory<? extends DatagramChannel> channelFactory,
DnsCache resolveCache,
DnsCache authoritativeDnsServerCache,
DnsQueryLifecycleObserverFactory dnsQueryLifecycleObserverFactory,
long queryTimeoutMillis,
ResolvedAddressTypes resolvedAddressTypes,
boolean recursionDesired,
int maxQueriesPerResolve,
boolean traceEnabled,
int maxPayloadSize,
boolean optResourceEnabled,
HostsFileEntriesResolver hostsFileEntriesResolver,
DnsServerAddressStreamProvider dnsServerAddressStreamProvider,
String[] searchDomains,
int ndots,
boolean decodeIdn)
Creates a new DNS-based name resolver that communicates with the specified list of DNS servers.
|
MultiDnsServerAddressStreamProvider(DnsServerAddressStreamProvider... providers)
Create a new instance.
|
RoundRobinDnsAddressResolverGroup(ChannelFactory<? extends DatagramChannel> channelFactory,
DnsServerAddressStreamProvider nameServerProvider) |
RoundRobinDnsAddressResolverGroup(Class<? extends DatagramChannel> channelType,
DnsServerAddressStreamProvider nameServerProvider) |
Constructor and Description |
---|
MultiDnsServerAddressStreamProvider(List<DnsServerAddressStreamProvider> providers)
Create a new instance.
|
Copyright © 2008–2017 The Netty Project. All rights reserved.