Top Deprecated
Netty/Resolver/DNS 4.1.107.Final

Deprecated API


No API in this release is deprecated for removal.

Deprecated Item Summary

SinceDeprecated Item and Description
io.netty.resolver.dns.DnsAddressResolverGroup.DnsAddressResolverGroup(ChannelFactory<? extends DatagramChannel> channelFactory, DnsServerAddressStreamProvider nameServerProvider)

Deprecated as a consequence of ChannelFactory being deprecated. See corresponding docs for further information.

io.netty.resolver.dns.DnsAddressResolverGroup.newNameResolver(EventLoop eventLoop, ChannelFactory<? extends DatagramChannel> channelFactory, DnsServerAddressStreamProvider nameServerProvider)

Deprecated as a consequence of ChannelFactory being deprecated. See corresponding docs for further information.

io.netty.resolver.dns.DnsNameResolver.DnsNameResolver(EventLoop
the EventLoop which will perform the communication with the DNS servers
eventLoop
,
ChannelFactory<? extends DatagramChannel>
the ChannelFactory that will create a DatagramChannel
channelFactory
,
final DnsCache
the DNS resolved entries cache
resolveCache
,
final DnsCache
the cache used to find the authoritative DNS server for a domain
authoritativeDnsServerCache
,
DnsQueryLifecycleObserverFactory
used to generate new instances of DnsQueryLifecycleObserver which can be used to track metrics for DNS servers.
dnsQueryLifecycleObserverFactory
,
long
timeout of each DNS query in millis. 0 disables the timeout. If not set or a negative number is set, the default timeout is used.
queryTimeoutMillis
,
ResolvedAddressTypes
the preferred address types
resolvedAddressTypes
,
boolean
if recursion desired flag must be set
recursionDesired
,
int
the maximum allowed number of DNS queries for a given name resolution
maxQueriesPerResolve
,
boolean
if trace is enabled
traceEnabled
,
int
the capacity of the datagram packet buffer
maxPayloadSize
,
boolean
if automatic inclusion of a optional records is enabled
optResourceEnabled
,
HostsFileEntriesResolver
the HostsFileEntriesResolver used to check for local aliases
hostsFileEntriesResolver
,
DnsServerAddressStreamProvider
The DnsServerAddressStreamProvider used to determine the name servers for each hostname lookup.
dnsServerAddressStreamProvider
,
String[]
the list of search domain (can be null, if so, will try to default to the underlying platform ones)
searchDomains
,
int
the ndots value
ndots
,
boolean
true if domain / host names should be decoded to unicode when received. See rfc3492.
decodeIdn
)

Use DnsNameResolverBuilder.

io.netty.resolver.dns.DnsNameResolver.DnsNameResolver(EventLoop
the EventLoop which will perform the communication with the DNS servers
eventLoop
,
ChannelFactory<? extends DatagramChannel>
the ChannelFactory that will create a DatagramChannel
channelFactory
,
final DnsCache
the DNS resolved entries cache
resolveCache
,
final AuthoritativeDnsServerCache
the cache used to find the authoritative DNS server for a domain
authoritativeDnsServerCache
,
DnsQueryLifecycleObserverFactory
used to generate new instances of DnsQueryLifecycleObserver which can be used to track metrics for DNS servers.
dnsQueryLifecycleObserverFactory
,
long
timeout of each DNS query in millis. 0 disables the timeout. If not set or a negative number is set, the default timeout is used.
queryTimeoutMillis
,
ResolvedAddressTypes
the preferred address types
resolvedAddressTypes
,
boolean
if recursion desired flag must be set
recursionDesired
,
int
the maximum allowed number of DNS queries for a given name resolution
maxQueriesPerResolve
,
boolean
if trace is enabled
traceEnabled
,
int
the capacity of the datagram packet buffer
maxPayloadSize
,
boolean
if automatic inclusion of a optional records is enabled
optResourceEnabled
,
HostsFileEntriesResolver
the HostsFileEntriesResolver used to check for local aliases
hostsFileEntriesResolver
,
DnsServerAddressStreamProvider
The DnsServerAddressStreamProvider used to determine the name servers for each hostname lookup.
dnsServerAddressStreamProvider
,
String[]
the list of search domain (can be null, if so, will try to default to the underlying platform ones)
searchDomains
,
int
the ndots value
ndots
,
boolean
true if domain / host names should be decoded to unicode when received. See rfc3492.
decodeIdn
)

Use DnsNameResolverBuilder.

io.netty.resolver.dns.DnsNameResolver.DnsNameResolver(EventLoop eventLoop, ChannelFactory<? extends DatagramChannel> channelFactory, ChannelFactory<? extends SocketChannel> socketChannelFactory, boolean retryWithTcpOnTimeout, final DnsCache resolveCache, final DnsCnameCache cnameCache, final AuthoritativeDnsServerCache authoritativeDnsServerCache, SocketAddress localAddress, 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, boolean completeOncePreferredResolved, int maxNumConsolidation)

Deprecated as a consequence of ChannelFactory being deprecated. See corresponding docs for further information.

io.netty.resolver.dns.DnsNameResolverBuilder.channelFactory

Deprecated as a consequence of ChannelFactory being deprecated. See corresponding docs for further information.

io.netty.resolver.dns.DnsNameResolverBuilder.channelFactory()

Deprecated as a consequence of ChannelFactory being deprecated. See corresponding docs for further information.

Returns:

this
io.netty.resolver.dns.DnsNameResolverBuilder.channelFactory
(ChannelFactory<? extends DatagramChannel> channelFactory)

Deprecated as a consequence of ChannelFactory being deprecated. See corresponding docs for further information.

io.netty.resolver.dns.DnsNameResolverBuilder.socketChannelFactory

Deprecated as a consequence of ChannelFactory being deprecated. See corresponding docs for further information.

Returns:

this
io.netty.resolver.dns.DnsNameResolverBuilder.socketChannelFactory
(ChannelFactory<? extends SocketChannel>
the ChannelFactory or null if TCP fallback should not be supported. By default, TCP fallback is not enabled.
channelFactory
)

Deprecated as a consequence of ChannelFactory being deprecated. See corresponding docs for further information.

Returns:

this
io.netty.resolver.dns.DnsNameResolverBuilder.socketChannelFactory
(ChannelFactory<? extends SocketChannel>
the ChannelFactory or null if TCP fallback should not be supported. By default, TCP fallback is not enabled.
channelFactory
,
boolean
if true the DnsNameResolver will also fallback to TCP if a timeout was detected, if false it will only try to use TCP if the response was marked as truncated.
retryOnTimeout
)

Deprecated as a consequence of ChannelFactory being deprecated. See corresponding docs for further information.

Returns:

this
io.netty.resolver.dns.DnsNameResolverBuilder.traceEnabled
(boolean
true if trace is enabled
traceEnabled
)

Prefer to configure a LoggingDnsQueryLifeCycleObserverFactory instead.

io.netty.resolver.dns.DnsServerAddresses.defaultAddressList()

Use DefaultDnsServerAddressStreamProvider#defaultAddressList().

Returns the list of the system DNS server addresses. If it failed to retrieve the list of the system DNS server addresses from the environment, it will return "8.8.8.8" and "8.8.4.4", the addresses of the Google public DNS servers.

io.netty.resolver.dns.DnsServerAddresses.defaultAddresses()

Use DefaultDnsServerAddressStreamProvider#defaultAddresses().

Returns the DnsServerAddresses that yields the system DNS server addresses sequentially. If it failed to retrieve the list of the system DNS server addresses from the environment, it will use "8.8.8.8" and "8.8.4.4", the addresses of the Google public DNS servers.

This method has the same effect with the following code:

DnsServerAddresses.sequential(DnsServerAddresses.defaultAddressList());

io.netty.resolver.dns.RoundRobinDnsAddressResolverGroup.RoundRobinDnsAddressResolverGroup(ChannelFactory<? extends DatagramChannel> channelFactory, DnsServerAddressStreamProvider nameServerProvider)

Deprecated as a consequence of ChannelFactory being deprecated. See corresponding docs for further information.