程序包 | 说明 |
---|---|
io.netty.handler.codec.dns |
DNS codec.
|
io.netty.resolver.dns |
An alternative to Java's built-in domain name lookup mechanism that resolves a domain name asynchronously,
which supports the queries of an arbitrary DNS record type as well.
|
限定符和类型 | 类和说明 |
---|---|
class |
DatagramDnsResponse
A
DnsResponse implementation for UDP/IP. |
class |
DefaultDnsResponse
The default
DnsResponse implementation. |
限定符和类型 | 方法和说明 |
---|---|
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) |
protected DnsResponse |
DatagramDnsResponseDecoder.decodeResponse(ChannelHandlerContext ctx,
DatagramPacket packet) |
DnsResponse |
DnsResponse.retain() |
DnsResponse |
DefaultDnsResponse.retain() |
DnsResponse |
DnsResponse.retain(int increment) |
DnsResponse |
DefaultDnsResponse.retain(int increment) |
DnsResponse |
DnsResponse.setAuthoritativeAnswer(boolean authoritativeAnswer)
Set to
true if responding server is authoritative for the domain
name in the query message. |
DnsResponse |
DefaultDnsResponse.setAuthoritativeAnswer(boolean authoritativeAnswer) |
DnsResponse |
DnsResponse.setCode(DnsResponseCode code)
Sets the response code for this message.
|
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)
Set to
true if DNS server can handle recursive queries. |
DnsResponse |
DefaultDnsResponse.setRecursionAvailable(boolean recursionAvailable) |
DnsResponse |
DnsResponse.setRecursionDesired(boolean recursionDesired) |
DnsResponse |
DefaultDnsResponse.setRecursionDesired(boolean recursionDesired) |
DnsResponse |
DnsResponse.setTruncated(boolean truncated)
Set to
true if response has been truncated (usually happens for
responses over 512 bytes). |
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) |
限定符和类型 | 方法和说明 |
---|---|
protected void |
TcpDnsResponseEncoder.encode(ChannelHandlerContext ctx,
DnsResponse response,
java.util.List<java.lang.Object> out) |
限定符和类型 | 方法和说明 |
---|---|
protected ByteBuf |
DatagramDnsResponseEncoder.allocateBuffer(ChannelHandlerContext ctx,
AddressedEnvelope<DnsResponse,java.net.InetSocketAddress> msg)
Allocate a
ByteBuf which will be used for constructing a datagram packet. |
protected void |
DatagramDnsResponseEncoder.encode(ChannelHandlerContext ctx,
AddressedEnvelope<DnsResponse,java.net.InetSocketAddress> in,
java.util.List<java.lang.Object> out) |
限定符和类型 | 方法和说明 |
---|---|
Future<AddressedEnvelope<DnsResponse,java.net.InetSocketAddress>> |
DnsNameResolver.query(DnsQuestion question)
Sends a DNS query with the specified question.
|
Future<AddressedEnvelope<DnsResponse,java.net.InetSocketAddress>> |
DnsNameResolver.query(DnsQuestion question,
java.lang.Iterable<DnsRecord> additionals)
Sends a DNS query with the specified question with additional records.
|
Future<AddressedEnvelope<DnsResponse,java.net.InetSocketAddress>> |
DnsNameResolver.query(DnsQuestion question,
Promise<AddressedEnvelope<? extends DnsResponse,java.net.InetSocketAddress>> promise)
Sends a DNS query with the specified question.
|
Future<AddressedEnvelope<DnsResponse,java.net.InetSocketAddress>> |
DnsNameResolver.query(java.net.InetSocketAddress nameServerAddr,
DnsQuestion question)
Sends a DNS query with the specified question using the specified name server list.
|
Future<AddressedEnvelope<DnsResponse,java.net.InetSocketAddress>> |
DnsNameResolver.query(java.net.InetSocketAddress nameServerAddr,
DnsQuestion question,
java.lang.Iterable<DnsRecord> additionals)
Sends a DNS query with the specified question with additional records using the specified name server list.
|
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)
Sends a DNS query with the specified question with additional records using the specified name server list.
|
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.
|
限定符和类型 | 方法和说明 |
---|---|
Future<AddressedEnvelope<DnsResponse,java.net.InetSocketAddress>> |
DnsNameResolver.query(DnsQuestion question,
Promise<AddressedEnvelope<? extends DnsResponse,java.net.InetSocketAddress>> promise)
Sends a DNS query with the specified question.
|
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)
Sends a DNS query with the specified question with additional records using the specified name server list.
|
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.
|