| 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 |
DefaultDnsCache
Default implementation of
DnsCache, backed by a ConcurrentMap. |
class |
NoopDnsCache
A noop DNS cache that actually never caches anything.
|
| Modifier and Type | Method and Description |
|---|---|
DnsCache |
DnsNameResolver.resolveCache()
Returns the resolution cache.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
DnsNameResolver.doResolve(String inetHost,
io.netty.util.concurrent.Promise<InetAddress> promise,
DnsCache resolveCache)
Hook designed for extensibility so one can pass a different cache on each resolution attempt
instead of using the global one.
|
protected void |
DnsNameResolver.doResolveAll(String inetHost,
io.netty.util.concurrent.Promise<List<InetAddress>> promise,
DnsCache resolveCache)
Hook designed for extensibility so one can pass a different cache on each resolution attempt
instead of using the global one.
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.resolveCache(DnsCache resolveCache)
Sets the cache for resolution results.
|
| Constructor and Description |
|---|
DnsNameResolver(io.netty.channel.EventLoop eventLoop,
io.netty.bootstrap.ChannelFactory<? extends io.netty.channel.socket.DatagramChannel> channelFactory,
InetSocketAddress localAddress,
DnsServerAddresses nameServerAddresses,
DnsCache resolveCache,
long queryTimeoutMillis,
io.netty.channel.socket.InternetProtocolFamily[] resolvedAddressTypes,
boolean recursionDesired,
int maxQueriesPerResolve,
boolean traceEnabled,
int maxPayloadSize,
boolean optResourceEnabled,
HostsFileEntriesResolver hostsFileEntriesResolver)
Creates a new DNS-based name resolver that communicates with the specified list of DNS servers.
|
Copyright © 2016. All Rights Reserved.