程序包 | 说明 |
---|---|
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.
|
限定符和类型 | 类和说明 |
---|---|
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.
|
限定符和类型 | 方法和说明 |
---|---|
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() |
限定符和类型 | 方法和说明 |
---|---|
DnsNameResolverBuilder |
DnsNameResolverBuilder.nameServerProvider(DnsServerAddressStreamProvider dnsServerAddressStreamProvider)
Set the
DnsServerAddressStreamProvider which is used to determine which DNS server is used to resolve
each hostname. |
protected NameResolver<java.net.InetAddress> |
DnsAddressResolverGroup.newNameResolver(EventLoop eventLoop,
ChannelFactory<? extends DatagramChannel> channelFactory,
DnsServerAddressStreamProvider nameServerProvider)
Creates a new
NameResolver . |
protected AddressResolver<java.net.InetSocketAddress> |
DnsAddressResolverGroup.newResolver(EventLoop eventLoop,
ChannelFactory<? extends DatagramChannel> channelFactory,
DnsServerAddressStreamProvider nameServerProvider)
|
构造器和说明 |
---|
DnsAddressResolverGroup(ChannelFactory<? extends DatagramChannel> channelFactory,
DnsServerAddressStreamProvider nameServerProvider) |
DnsAddressResolverGroup(java.lang.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,
java.lang.String[] searchDomains,
int ndots,
boolean decodeIdn)
已过时。
|
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,
java.lang.String[] searchDomains,
int ndots,
boolean decodeIdn)
已过时。
|
MultiDnsServerAddressStreamProvider(DnsServerAddressStreamProvider... providers)
Create a new instance.
|
RoundRobinDnsAddressResolverGroup(ChannelFactory<? extends DatagramChannel> channelFactory,
DnsServerAddressStreamProvider nameServerProvider) |
RoundRobinDnsAddressResolverGroup(java.lang.Class<? extends DatagramChannel> channelType,
DnsServerAddressStreamProvider nameServerProvider) |
构造器和说明 |
---|
MultiDnsServerAddressStreamProvider(java.util.List<DnsServerAddressStreamProvider> providers)
Create a new instance.
|
限定符和类型 | 类和说明 |
---|---|
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. |