public interface DnsServerAddressStreamProvider
DnsServerAddressStream
is used to resolve a specific hostname.
For example this can be used to represent /etc/resolv.conf and /etc/resolver.
限定符和类型 | 方法和说明 |
---|---|
DnsServerAddressStream |
nameServerAddressStream(java.lang.String hostname)
Ask this provider for the name servers to query for
hostname . |
DnsServerAddressStream nameServerAddressStream(java.lang.String hostname)
hostname
.hostname
- The hostname for which to lookup the DNS server addressed to use.
If this is the final DnsServerAddressStreamProvider
to be queried then generally empty
string or '.'
correspond to the default DnsServerAddressStream
.DnsServerAddressStream
which should be used to resolve hostname
.