@UnstableApi 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.
Modifier and Type | Method and Description |
---|---|
DnsServerAddressStream |
nameServerAddressStream(String hostname)
Ask this provider for the name servers to query for
hostname . |
DnsServerAddressStream nameServerAddressStream(String hostname)
hostname
.hostname
- The hostname for which to lookup the DNS server addressed to use.DnsServerAddressStream
which should be used to resolve hostname
or null
to
use the default resolvers.Copyright © 2008–2017 The Netty Project. All rights reserved.