软件包 | 描述 |
---|---|
io.netty.handler.codec.dns |
DNS编解码器。
|
io.netty.resolver.dns |
Java的内置域名查找机制的一种替代方法,可以异步解析域名,同样支持任意DNS记录类型的查询。
|
Modifier and Type | Interface and Description |
---|---|
interface |
DnsOptEcsRecord
Client Subnet in DNS Queries中定义的ECS记录。
|
interface |
DnsOptPseudoRecord
OPT RR记录。
|
interface |
DnsPtrRecord |
interface |
DnsQuestion
DNS问题。
|
interface |
DnsRawRecord
通用 DnsRecord 包含未解码的RDATA 。
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractDnsOptPseudoRrRecord
OPT RR记录。
|
class |
AbstractDnsRecord
DnsRecord 的骨架实现。
|
class |
DefaultDnsOptEcsRecord
默认 DnsOptEcsRecord 执行。
|
class |
DefaultDnsPtrRecord |
class |
DefaultDnsQuestion
默认的 DnsQuestion 实现。
|
class |
DefaultDnsRawRecord
默认的
DnsRawRecord 实现。
|
Modifier and Type | Method and Description |
---|---|
<T extends DnsRecord> |
DnsRecordDecoder.decodeRecord(ByteBuf in)
将DNS记录解码为其对象表示。
|
<T extends DnsRecord> |
DefaultDnsRecordDecoder.decodeRecord(ByteBuf in) |
<T extends DnsRecord> |
DnsMessage.recordAt(DnsSection section)
返回此DNS消息的指定
section 中的第一条记录。
|
<T extends DnsRecord> |
AbstractDnsMessage.recordAt(DnsSection section) |
<T extends DnsRecord> |
DnsMessage.recordAt(DnsSection section, int index)
返回此DNS消息的指定
index 的指定
section 处的记录。
|
<T extends DnsRecord> |
AbstractDnsMessage.recordAt(DnsSection section, int index) |
<T extends DnsRecord> |
DnsMessage.removeRecord(DnsSection section, int index)
从此DNS消息中删除指定
index 的指定
section 处的记录。
|
<T extends DnsRecord> |
AbstractDnsMessage.removeRecord(DnsSection section, int index) |
<T extends DnsRecord> |
DnsMessage.setRecord(DnsSection section, int index, DnsRecord record)
设置指定的
record 在指定的
index 指定的
section 这个DNS信息。
|
<T extends DnsRecord> |
AbstractDnsMessage.setRecord(DnsSection section, int index, DnsRecord record) |
Modifier and Type | Method and Description |
---|---|
protected DnsRecord |
DefaultDnsRecordDecoder.decodeRecord(java.lang.String name, DnsRecordType type, int dnsClass, long timeToLive, ByteBuf in, int offset, int length)
从
DefaultDnsRecordDecoder.decodeRecord(ByteBuf) 到目前为止解码的信息中解码记录。
|
Modifier and Type | Method and Description |
---|---|
DnsResponse |
DnsResponse.addRecord(DnsSection section, DnsRecord record) |
DnsQuery |
DnsQuery.addRecord(DnsSection section, DnsRecord record) |
DnsMessage |
DnsMessage.addRecord(DnsSection section, DnsRecord record)
添加指定
record 在指定的结束
section 此DNS的消息。
|
DnsResponse |
DefaultDnsResponse.addRecord(DnsSection section, DnsRecord record) |
DnsQuery |
DefaultDnsQuery.addRecord(DnsSection section, DnsRecord record) |
DatagramDnsResponse |
DatagramDnsResponse.addRecord(DnsSection section, DnsRecord record) |
DatagramDnsQuery |
DatagramDnsQuery.addRecord(DnsSection section, DnsRecord record) |
DnsMessage |
AbstractDnsMessage.addRecord(DnsSection section, DnsRecord record) |
DnsResponse |
DnsResponse.addRecord(DnsSection section, int index, DnsRecord record) |
DnsQuery |
DnsQuery.addRecord(DnsSection section, int index, DnsRecord record) |
DnsMessage |
DnsMessage.addRecord(DnsSection section, int index, DnsRecord record)
添加指定
record 在指定
index 指定的
section 此DNS的消息。
|
DnsResponse |
DefaultDnsResponse.addRecord(DnsSection section, int index, DnsRecord record) |
DnsQuery |
DefaultDnsQuery.addRecord(DnsSection section, int index, DnsRecord record) |
DatagramDnsResponse |
DatagramDnsResponse.addRecord(DnsSection section, int index, DnsRecord record) |
DatagramDnsQuery |
DatagramDnsQuery.addRecord(DnsSection section, int index, DnsRecord record) |
DnsMessage |
AbstractDnsMessage.addRecord(DnsSection section, int index, DnsRecord record) |
void |
DnsRecordEncoder.encodeRecord(DnsRecord record, ByteBuf out)
编码 DnsRecord 。
|
void |
DefaultDnsRecordEncoder.encodeRecord(DnsRecord record, ByteBuf out) |
DnsResponse |
DnsResponse.setRecord(DnsSection section, DnsRecord record) |
DnsQuery |
DnsQuery.setRecord(DnsSection section, DnsRecord record) |
DnsMessage |
DnsMessage.setRecord(DnsSection section, DnsRecord record)
设置指定的
section 这个DNS消息到指定的
record ,使其成为一个单一的记录部分。
|
DnsResponse |
DefaultDnsResponse.setRecord(DnsSection section, DnsRecord record) |
DnsQuery |
DefaultDnsQuery.setRecord(DnsSection section, DnsRecord record) |
DatagramDnsResponse |
DatagramDnsResponse.setRecord(DnsSection section, DnsRecord record) |
DatagramDnsQuery |
DatagramDnsQuery.setRecord(DnsSection section, DnsRecord record) |
DnsMessage |
AbstractDnsMessage.setRecord(DnsSection section, DnsRecord record) |
<T extends DnsRecord> |
DnsMessage.setRecord(DnsSection section, int index, DnsRecord record)
设置指定的
record 在指定的
index 指定的
section 这个DNS信息。
|
<T extends DnsRecord> |
AbstractDnsMessage.setRecord(DnsSection section, int index, DnsRecord record) |
Modifier and Type | Method and Description |
---|---|
DnsCacheEntry |
NoopDnsCache.cache(java.lang.String hostname, DnsRecord[] additional, java.net.InetAddress address, long originalTtl, EventLoop loop) |
DnsCacheEntry |
DnsCache.cache(java.lang.String hostname, DnsRecord[] additionals, java.net.InetAddress address, long originalTtl, EventLoop loop)
创建一个新的 DnsCacheEntry 并缓存给定主机名的解析地址。
|
DnsCacheEntry |
DefaultDnsCache.cache(java.lang.String hostname, DnsRecord[] additionals, java.net.InetAddress address, long originalTtl, EventLoop loop) |
DnsCacheEntry |
NoopDnsCache.cache(java.lang.String hostname, DnsRecord[] additional, java.lang.Throwable cause, EventLoop loop) |
DnsCacheEntry |
DnsCache.cache(java.lang.String hostname, DnsRecord[] additionals, java.lang.Throwable cause, EventLoop loop)
缓存给定主机名的解析失败。
|
DnsCacheEntry |
DefaultDnsCache.cache(java.lang.String hostname, DnsRecord[] additionals, java.lang.Throwable cause, EventLoop loop) |
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专为扩展性而设计,因此可以在每次分辨率尝试时传递不同的缓存,而不是使用全局分辨率。
|
java.util.List<? extends DnsCacheEntry> |
NoopDnsCache.get(java.lang.String hostname, DnsRecord[] additionals) |
java.util.List<? extends DnsCacheEntry> |
DnsCache.get(java.lang.String hostname, DnsRecord[] additionals)
返回给定主机名的缓存条目。
|
java.util.List<? extends DnsCacheEntry> |
DefaultDnsCache.get(java.lang.String hostname, DnsRecord[] additionals) |
Modifier and Type | Method and Description |
---|---|
Future<AddressedEnvelope<DnsResponse,java.net.InetSocketAddress>> |
DnsNameResolver.query(DnsQuestion question, java.lang.Iterable<DnsRecord> additionals)
用指定的问题发送带有附加记录的DNS查询。
|
Future<AddressedEnvelope<DnsResponse,java.net.InetSocketAddress>> |
DnsNameResolver.query(java.net.InetSocketAddress nameServerAddr, DnsQuestion question, java.lang.Iterable<DnsRecord> additionals)
使用指定的名称服务器列表发送带有指定问题的DNS查询以及其他记录。
|
Future<AddressedEnvelope<DnsResponse,java.net.InetSocketAddress>> |
DnsNameResolver.query(java.net.InetSocketAddress nameServerAddr, DnsQuestion question, java.lang.Iterable<DnsRecord> additionals, Promise<AddressedEnvelope<? extends DnsResponse,java.net.InetSocketAddress>> promise)
使用指定的名称服务器列表发送带有指定问题的DNS查询以及其他记录。
|
Future<java.net.InetAddress> |
DnsNameResolver.resolve(java.lang.String inetHost, java.lang.Iterable<DnsRecord> additionals)
将指定的名称解析为地址。
|
Future<java.net.InetAddress> |
DnsNameResolver.resolve(java.lang.String inetHost, java.lang.Iterable<DnsRecord> additionals, Promise<java.net.InetAddress> promise)
将指定的名称解析为地址。
|
Future<java.util.List<java.net.InetAddress>> |
DnsNameResolver.resolveAll(java.lang.String inetHost, java.lang.Iterable<DnsRecord> additionals)
将指定的主机名和端口解析为地址列表。
|
Future<java.util.List<java.net.InetAddress>> |
DnsNameResolver.resolveAll(java.lang.String inetHost, java.lang.Iterable<DnsRecord> additionals, Promise<java.util.List<java.net.InetAddress>> promise)
将指定的主机名和端口解析为地址列表。
|
Copyright © 2008–2018 The Netty Project. All rights reserved.