Package | Description |
---|---|
io.netty.resolver |
Resolves an arbitrary string that represents the name of an endpoint into an address.
|
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 |
DefaultHostsFileEntriesResolver
Default
HostsFileEntriesResolver that resolves hosts file entries only once. |
Modifier and Type | Field and Description |
---|---|
static HostsFileEntriesResolver |
HostsFileEntriesResolver.DEFAULT
Default instance: a
DefaultHostsFileEntriesResolver . |
Modifier and Type | Method and Description |
---|---|
HostsFileEntriesResolver |
DnsNameResolver.hostsFileEntriesResolver()
Returns the component that tries to resolve hostnames against the hosts file prior to asking to
remotes DNS servers.
|
Modifier and Type | Method and Description |
---|---|
DnsNameResolverBuilder |
DnsNameResolverBuilder.hostsFileEntriesResolver(HostsFileEntriesResolver hostsFileEntriesResolver) |
Constructor and Description |
---|
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.
|
Copyright © 2008–2017 The Netty Project. All rights reserved.