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.
|
io.netty.resolver.dns.macos |
MacOS specific nameserver resolution.
|
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 |
SequentialDnsServerAddressStreamProvider
A
DnsServerAddressStreamProvider which is backed by a sequential list of DNS servers. |
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 |
---|---|
protected DnsServerAddressStreamProvider |
DnsNameResolverBuilder.nameServerProvider() |
static DnsServerAddressStreamProvider |
DnsServerAddressStreamProviders.platformDefault()
A
DnsServerAddressStreamProvider which inherits the DNS servers from your local host's configuration. |
static DnsServerAddressStreamProvider |
DnsServerAddressStreamProviders.unixDefault() |
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,
AuthoritativeDnsServerCache 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)
Deprecated.
|
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)
Deprecated.
|
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.
|
Modifier and Type | Class and Description |
---|---|
class |
MacOSDnsServerAddressStreamProvider
DnsServerAddressStreamProvider implementation which makes use of the same mechanism as
Apple's open source mDNSResponder to retrieve the
current nameserver configuration of the system. |
Copyright © 2008–2024 The Netty Project. All rights reserved.