软件包 | 描述 |
---|---|
io.netty.resolver.dns |
Java的内置域名查找机制的一种替代方法,可以异步解析域名,同样支持任意DNS记录类型的查询。
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultDnsCache
默认实现 DnsCache ,由ConcurrentMap 支持。
|
class |
NoopDnsCache
实际上从不缓存任何东西的noop DNS缓存。
|
Modifier and Type | Method and Description |
---|---|
DnsCache |
DnsNameResolver.authoritativeDnsServerCache()
返回用于域的授权DNS服务器的缓存。
|
DnsCache |
DnsNameResolver.resolveCache()
返回分辨率缓存。
|
Modifier and Type | Method and Description |
---|---|
DnsNameResolverBuilder |
DnsNameResolverBuilder.authoritativeDnsServerCache(DnsCache authoritativeDnsServerCache)
设置权威NS服务器的缓存
|
protected void |
DnsNameResolver.doResolve(java.lang.String inetHost, DnsRecord[] additionals, Promise<java.net.InetAddress> promise, DnsCache resolveCache)
Hook专为扩展性而设计,因此可以在每次分辨率尝试时传递不同的缓存,而不是使用全局分辨率。
|
protected void |
DnsNameResolver.doResolveAll(java.lang.String inetHost, DnsRecord[] additionals, Promise<java.util.List<java.net.InetAddress>> promise, DnsCache resolveCache)
Hook专为扩展性而设计,因此可以在每次分辨率尝试时传递不同的缓存,而不是使用全局分辨率。
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.resolveCache(DnsCache resolveCache)
设置解析结果的缓存。
|
Constructor and Description |
---|
DnsNameResolver(EventLoop eventLoop, ChannelFactory<? extends DatagramChannel> channelFactory, DnsCache resolveCache, DnsCache authoritativeDnsServerCache, DnsQueryLifecycleObserverFactory dnsQueryLifecycleObserverFactory, long queryTimeoutMillis, ResolvedAddressTypes resolvedAddressTypes, boolean recursionDesired, int maxQueriesPerResolve, boolean traceEnabled, int maxPayloadSize, boolean optResourceEnabled, HostsFileEntriesResolver hostsFileEntriesResolver, DnsServerAddressStreamProvider dnsServerAddressStreamProvider, java.lang.String[] searchDomains, int ndots, boolean decodeIdn)
创建一个与指定的DNS服务器列表通信的新的基于DNS的名称解析器。
|
Copyright © 2008–2018 The Netty Project. All rights reserved.