Top Deprecated
Netty5/Resolver/DNS 5.0.0.Alpha5

Deprecated API


No API in this release is deprecated for removal.

Deprecated Item Summary

SinceDeprecated Item and Description
io.netty5.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
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
,
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.netty5.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
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
,
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.netty5.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.netty5.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());