Module io.netty5.resolver.dns
Package io.netty5.resolver.dns
Interface DnsServerAddressStreamProvider
-
- All Known Implementing Classes:
DefaultDnsServerAddressStreamProvider
,MacOSDnsServerAddressStreamProvider
,MultiDnsServerAddressStreamProvider
,SequentialDnsServerAddressStreamProvider
,SingletonDnsServerAddressStreamProvider
,UnixResolverDnsServerAddressStreamProvider
public interface DnsServerAddressStreamProvider
Provides an opportunity to override whichDnsServerAddressStream
is used to resolve a specific hostname.For example this can be used to represent /etc/resolv.conf and /etc/resolver.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DnsServerAddressStream
nameServerAddressStream(String hostname)
Ask this provider for the name servers to query forhostname
.
-
-
-
Method Detail
-
nameServerAddressStream
DnsServerAddressStream nameServerAddressStream(String hostname)
Ask this provider for the name servers to query forhostname
.- Parameters:
hostname
- The hostname for which to lookup the DNS server addressed to use. If this is the finalDnsServerAddressStreamProvider
to be queried then generally empty string or'.'
correspond to the defaultDnsServerAddressStream
.- Returns:
- The
DnsServerAddressStream
which should be used to resolvehostname
.
-
-