软件包 | 描述 |
---|---|
io.netty.handler.codec.dns |
DNS编解码器。
|
io.netty.resolver.dns |
Java的内置域名查找机制的一种替代方法,可以异步解析域名,同样支持任意DNS记录类型的查询。
|
Modifier and Type | Class and Description |
---|---|
class |
DatagramDnsResponse
UDP / IP的 DnsResponse 实现。
|
class |
DefaultDnsResponse
默认的 DnsResponse 实现。
|
Modifier and Type | Method and Description |
---|---|
DnsResponse |
DnsResponse.addRecord(DnsSection section, DnsRecord record) |
DnsResponse |
DefaultDnsResponse.addRecord(DnsSection section, DnsRecord record) |
DnsResponse |
DnsResponse.addRecord(DnsSection section, int index, DnsRecord record) |
DnsResponse |
DefaultDnsResponse.addRecord(DnsSection section, int index, DnsRecord record) |
DnsResponse |
DnsResponse.clear() |
DnsResponse |
DefaultDnsResponse.clear() |
DnsResponse |
DnsResponse.clear(DnsSection section) |
DnsResponse |
DefaultDnsResponse.clear(DnsSection section) |
DnsResponse |
DnsResponse.retain() |
DnsResponse |
DefaultDnsResponse.retain() |
DnsResponse |
DnsResponse.retain(int increment) |
DnsResponse |
DefaultDnsResponse.retain(int increment) |
DnsResponse |
DnsResponse.setAuthoritativeAnswer(boolean authoritativeAnswer)
如果响应服务器对查询消息中的域名具有权威性,则设置为
true 。
|
DnsResponse |
DefaultDnsResponse.setAuthoritativeAnswer(boolean authoritativeAnswer) |
DnsResponse |
DnsResponse.setCode(DnsResponseCode code)
设置此消息的响应代码。
|
DnsResponse |
DefaultDnsResponse.setCode(DnsResponseCode code) |
DnsResponse |
DnsResponse.setId(int id) |
DnsResponse |
DefaultDnsResponse.setId(int id) |
DnsResponse |
DnsResponse.setOpCode(DnsOpCode opCode) |
DnsResponse |
DefaultDnsResponse.setOpCode(DnsOpCode opCode) |
DnsResponse |
DnsResponse.setRecord(DnsSection section, DnsRecord record) |
DnsResponse |
DefaultDnsResponse.setRecord(DnsSection section, DnsRecord record) |
DnsResponse |
DnsResponse.setRecursionAvailable(boolean recursionAvailable)
如果DNS服务器可以处理递归查询,则设置为
true 。
|
DnsResponse |
DefaultDnsResponse.setRecursionAvailable(boolean recursionAvailable) |
DnsResponse |
DnsResponse.setRecursionDesired(boolean recursionDesired) |
DnsResponse |
DefaultDnsResponse.setRecursionDesired(boolean recursionDesired) |
DnsResponse |
DnsResponse.setTruncated(boolean truncated)
如果响应已被截断,则设置为
true (通常发生在512字节以上的响应)。
|
DnsResponse |
DefaultDnsResponse.setTruncated(boolean truncated) |
DnsResponse |
DnsResponse.setZ(int z) |
DnsResponse |
DefaultDnsResponse.setZ(int z) |
DnsResponse |
DnsResponse.touch() |
DnsResponse |
DefaultDnsResponse.touch() |
DnsResponse |
DnsResponse.touch(java.lang.Object hint) |
DnsResponse |
DefaultDnsResponse.touch(java.lang.Object hint) |
Modifier and Type | Method and Description |
---|---|
protected ByteBuf |
DatagramDnsResponseEncoder.allocateBuffer(ChannelHandlerContext ctx, AddressedEnvelope<DnsResponse,java.net.InetSocketAddress> msg)
分配将用于构造数据报包的 ByteBuf 。
|
protected void |
DatagramDnsResponseEncoder.encode(ChannelHandlerContext ctx, AddressedEnvelope<DnsResponse,java.net.InetSocketAddress> in, java.util.List<java.lang.Object> out) |
Modifier and Type | Method and Description |
---|---|
Future<AddressedEnvelope<DnsResponse,java.net.InetSocketAddress>> |
DnsNameResolver.query(DnsQuestion question)
用指定的问题发送DNS查询。
|
Future<AddressedEnvelope<DnsResponse,java.net.InetSocketAddress>> |
DnsNameResolver.query(DnsQuestion question, java.lang.Iterable<DnsRecord> additionals)
用指定的问题发送带有附加记录的DNS查询。
|
Future<AddressedEnvelope<DnsResponse,java.net.InetSocketAddress>> |
DnsNameResolver.query(DnsQuestion question, Promise<AddressedEnvelope<? extends DnsResponse,java.net.InetSocketAddress>> promise)
用指定的问题发送DNS查询。
|
Future<AddressedEnvelope<DnsResponse,java.net.InetSocketAddress>> |
DnsNameResolver.query(java.net.InetSocketAddress nameServerAddr, DnsQuestion question)
使用指定的名称服务器列表发送包含指定问题的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<AddressedEnvelope<DnsResponse,java.net.InetSocketAddress>> |
DnsNameResolver.query(java.net.InetSocketAddress nameServerAddr, DnsQuestion question, Promise<AddressedEnvelope<? extends DnsResponse,java.net.InetSocketAddress>> promise)
使用指定的名称服务器列表发送包含指定问题的DNS查询。
|
Modifier and Type | Method and Description |
---|---|
Future<AddressedEnvelope<DnsResponse,java.net.InetSocketAddress>> |
DnsNameResolver.query(DnsQuestion question, Promise<AddressedEnvelope<? extends DnsResponse,java.net.InetSocketAddress>> promise)
用指定的问题发送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<AddressedEnvelope<DnsResponse,java.net.InetSocketAddress>> |
DnsNameResolver.query(java.net.InetSocketAddress nameServerAddr, DnsQuestion question, Promise<AddressedEnvelope<? extends DnsResponse,java.net.InetSocketAddress>> promise)
Sends a DNS query with the specified question using the specified name server list.
|
Copyright © 2008–2018 The Netty Project. All rights reserved.