@UnstableApi
public final class SingletonDnsServerAddressStreamProvider
extends java.lang.Object
DnsServerAddressStreamProvider
总是使用单个DNS服务器进行解析。
Constructor and Description |
---|
SingletonDnsServerAddressStreamProvider(java.net.InetSocketAddress address)
创建一个新的实例。
|
Modifier and Type | Method and Description |
---|---|
DnsServerAddressStream |
nameServerAddressStream(java.lang.String hostname)
询问该提供商的名称服务器以查询
hostname 。
|
public SingletonDnsServerAddressStreamProvider(java.net.InetSocketAddress address)
address
- 用于每个DNS解析的单身地址。
public final DnsServerAddressStream nameServerAddressStream(java.lang.String hostname)
DnsServerAddressStreamProvider
hostname
。
nameServerAddressStream
接口
DnsServerAddressStreamProvider
hostname
- 要查找要使用的DNS服务器的主机名。
如果这是要查询的最终DnsServerAddressStreamProvider
,则通常空字符串或'.'
对应于默认DnsServerAddressStream
。
DnsServerAddressStream
应该用来解决hostname
。
Copyright © 2008–2018 The Netty Project. All rights reserved.