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 | Method and Description |
---|---|
DnsNameResolverBuilder |
DnsNameResolverBuilder.authoritativeDnsServerCache(AuthoritativeDnsServerCache authoritativeDnsServerCache)
Sets the cache for authoritative NS servers
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.authoritativeDnsServerCache(DnsCache authoritativeDnsServerCache)
Deprecated.
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.channelFactory(ChannelFactory<? extends DatagramChannel> datagramChannelFactory)
Deprecated.
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.channelType(Class<? extends DatagramChannel> channelType)
Deprecated.
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.cnameCache(DnsCnameCache cnameCache)
Sets the cache for
CNAME mappings. |
DnsNameResolverBuilder |
DnsNameResolverBuilder.completeOncePreferredResolved(boolean completeOncePreferredResolved)
If
true SimpleNameResolver.resolveAll(String) will notify the returned Future as
soon as all queries for the preferred address-type are complete. |
DnsNameResolverBuilder |
DnsNameResolverBuilder.consolidateCacheSize(int maxNumConsolidation)
Set the maximum size of the cache that is used to consolidate lookups for different hostnames when in-flight.
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.copy()
Creates a copy of this
DnsNameResolverBuilder |
DnsNameResolverBuilder |
DnsNameResolverBuilder.datagramChannelFactory(ChannelFactory<? extends DatagramChannel> datagramChannelFactory)
Sets the
ChannelFactory that will create a DatagramChannel . |
DnsNameResolverBuilder |
DnsNameResolverBuilder.datagramChannelStrategy(DnsNameResolverChannelStrategy datagramChannelStrategy)
Set the strategy that is used to determine how a
DatagramChannel is used by the resolver for sending
queries over UDP protocol. |
DnsNameResolverBuilder |
DnsNameResolverBuilder.datagramChannelType(Class<? extends DatagramChannel> channelType)
Sets the
ChannelFactory as a ReflectiveChannelFactory of this type. |
DnsNameResolverBuilder |
DnsNameResolverBuilder.decodeIdn(boolean decodeIdn)
Set if domain / host names should be decoded to unicode when received.
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.dnsQueryLifecycleObserverFactory(DnsQueryLifecycleObserverFactory lifecycleObserverFactory)
Set the factory used to generate objects which can observe individual DNS queries.
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.eventLoop(EventLoop eventLoop)
Sets the
EventLoop which will perform the communication with the DNS servers. |
DnsNameResolverBuilder |
DnsNameResolverBuilder.hostsFileEntriesResolver(HostsFileEntriesResolver hostsFileEntriesResolver) |
DnsNameResolverBuilder |
DnsNameResolverBuilder.localAddress(SocketAddress localAddress)
Configure the address that will be used to bind too.
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.maxPayloadSize(int maxPayloadSize)
Sets the capacity of the datagram packet buffer (in bytes).
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.maxQueriesPerResolve(int maxQueriesPerResolve)
Sets the maximum allowed number of DNS queries to send when resolving a host name.
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.nameServerProvider(DnsServerAddressStreamProvider dnsServerAddressStreamProvider)
Set the
DnsServerAddressStreamProvider which is used to determine which DNS server is used to resolve
each hostname. |
DnsNameResolverBuilder |
DnsNameResolverBuilder.ndots(int ndots)
Set the number of dots which must appear in a name before an initial absolute query is made.
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.negativeTtl(int negativeTtl)
Sets the TTL of the cache for the failed DNS queries (in seconds).
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.optResourceEnabled(boolean optResourceEnabled)
Enable the automatic inclusion of a optional records that tries to give the remote DNS server a hint about
how much data the resolver can read per response.
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.queryServerAddressStream(DnsServerAddressStream queryServerAddressStream)
Set the
DnsServerAddressStream which provides the server address for DNS queries. |
DnsNameResolverBuilder |
DnsNameResolverBuilder.queryTimeoutMillis(long queryTimeoutMillis)
Sets the timeout of each DNS query performed by this resolver (in milliseconds).
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.recursionDesired(boolean recursionDesired)
Sets if this resolver has to send a DNS query with the RD (recursion desired) flag set.
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.resolveCache(DnsCache resolveCache)
Sets the cache for resolution results.
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.resolvedAddressTypes(ResolvedAddressTypes resolvedAddressTypes)
Sets the list of the protocol families of the address resolved.
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.searchDomains(Iterable<String> searchDomains)
Set the list of search domains of the resolver.
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.socketChannelFactory(ChannelFactory<? extends SocketChannel> channelFactory)
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.socketChannelFactory(ChannelFactory<? extends SocketChannel> channelFactory,
boolean retryOnTimeout)
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.socketChannelType(Class<? extends SocketChannel> channelType)
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.socketChannelType(Class<? extends SocketChannel> channelType,
boolean retryOnTimeout)
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.traceEnabled(boolean traceEnabled)
Deprecated.
Prefer to configure
a
LoggingDnsQueryLifeCycleObserverFactory instead. |
DnsNameResolverBuilder |
DnsNameResolverBuilder.ttl(int minTtl,
int maxTtl)
Sets the minimum and maximum TTL of the cached DNS resource records (in seconds).
|
Constructor and Description |
---|
DnsAddressResolverGroup(DnsNameResolverBuilder dnsResolverBuilder) |
RoundRobinDnsAddressResolverGroup(DnsNameResolverBuilder dnsResolverBuilder) |
Copyright © 2008–2024 The Netty Project. All rights reserved.