Package | Description |
---|---|
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.
|
Modifier and Type | Interface and Description |
---|---|
interface |
DnsOptEcsRecord
An ECS record as defined in Client Subnet in DNS Queries.
|
interface |
DnsOptPseudoRecord
An OPT RR record.
|
interface |
DnsPtrRecord |
interface |
DnsQuestion
A DNS question.
|
interface |
DnsRawRecord
A generic
DnsRecord that contains an undecoded RDATA . |
Modifier and Type | Class and Description |
---|---|
class |
AbstractDnsOptPseudoRrRecord
An OPT RR record.
|
class |
AbstractDnsRecord
A skeletal implementation of
DnsRecord . |
class |
DefaultDnsOptEcsRecord
Default
DnsOptEcsRecord implementation. |
class |
DefaultDnsPtrRecord |
class |
DefaultDnsQuestion
The default
DnsQuestion implementation. |
class |
DefaultDnsRawRecord
The default
DnsRawRecord implementation. |
Modifier and Type | Method and Description |
---|---|
<T extends DnsRecord> |
DnsRecordDecoder.decodeRecord(ByteBuf in)
Decodes a DNS record into its object representation.
|
<T extends DnsRecord> |
DefaultDnsRecordDecoder.decodeRecord(ByteBuf in) |
<T extends DnsRecord> |
DnsMessage.recordAt(DnsSection section)
Returns the first record in the specified
section of this DNS message. |
<T extends DnsRecord> |
AbstractDnsMessage.recordAt(DnsSection section) |
<T extends DnsRecord> |
DnsMessage.recordAt(DnsSection section,
int index)
Returns the record at the specified
index of the specified section of this DNS message. |
<T extends DnsRecord> |
AbstractDnsMessage.recordAt(DnsSection section,
int index) |
<T extends DnsRecord> |
DnsMessage.removeRecord(DnsSection section,
int index)
Removes the record at the specified
index of the specified section from this DNS message. |
<T extends DnsRecord> |
AbstractDnsMessage.removeRecord(DnsSection section,
int index) |
<T extends DnsRecord> |
DnsMessage.setRecord(DnsSection section,
int index,
DnsRecord record)
Sets the specified
record at the specified index of the specified section
of this DNS message. |
<T extends DnsRecord> |
AbstractDnsMessage.setRecord(DnsSection section,
int index,
DnsRecord record) |
Modifier and Type | Method and Description |
---|---|
protected DnsRecord |
DefaultDnsRecordDecoder.decodeRecord(String name,
DnsRecordType type,
int dnsClass,
long timeToLive,
ByteBuf in,
int offset,
int length)
Decodes a record from the information decoded so far by
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)
Adds the specified
record at the end of the specified section of this DNS message. |
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)
Adds the specified
record at the specified index of the specified section
of this DNS message. |
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)
Encodes a
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)
Sets the specified
section of this DNS message to the specified record ,
making it a single-record section. |
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)
Sets the specified
record at the specified index of the specified section
of this DNS message. |
<T extends DnsRecord> |
AbstractDnsMessage.setRecord(DnsSection section,
int index,
DnsRecord record) |
Modifier and Type | Method and Description |
---|---|
void |
NoopDnsCache.cache(String hostname,
DnsRecord[] additional,
InetAddress address,
long originalTtl,
EventLoop loop) |
void |
DnsCache.cache(String hostname,
DnsRecord[] additionals,
InetAddress address,
long originalTtl,
EventLoop loop)
Cache a resolved address for a given hostname.
|
void |
DefaultDnsCache.cache(String hostname,
DnsRecord[] additionals,
InetAddress address,
long originalTtl,
EventLoop loop) |
void |
NoopDnsCache.cache(String hostname,
DnsRecord[] additional,
Throwable cause,
EventLoop loop) |
void |
DnsCache.cache(String hostname,
DnsRecord[] additionals,
Throwable cause,
EventLoop loop)
Cache the resolution failure for a given hostname.
|
void |
DefaultDnsCache.cache(String hostname,
DnsRecord[] additionals,
Throwable cause,
EventLoop loop) |
protected void |
DnsNameResolver.doResolve(String inetHost,
DnsRecord[] additionals,
Promise<InetAddress> promise,
DnsCache resolveCache)
Hook designed for extensibility so one can pass a different cache on each resolution attempt
instead of using the global one.
|
protected void |
DnsNameResolver.doResolveAll(String inetHost,
DnsRecord[] additionals,
Promise<List<InetAddress>> promise,
DnsCache resolveCache)
Hook designed for extensibility so one can pass a different cache on each resolution attempt
instead of using the global one.
|
List<DnsCacheEntry> |
NoopDnsCache.get(String hostname,
DnsRecord[] additionals) |
List<DnsCacheEntry> |
DnsCache.get(String hostname,
DnsRecord[] additionals)
Return the cached entries for the given hostname.
|
List<DnsCacheEntry> |
DefaultDnsCache.get(String hostname,
DnsRecord[] additionals) |
Modifier and Type | Method and Description |
---|---|
Future<AddressedEnvelope<DnsResponse,InetSocketAddress>> |
DnsNameResolver.query(DnsQuestion question,
Iterable<DnsRecord> additionals)
Sends a DNS query with the specified question with additional records.
|
Future<AddressedEnvelope<DnsResponse,InetSocketAddress>> |
DnsNameResolver.query(InetSocketAddress nameServerAddr,
DnsQuestion question,
Iterable<DnsRecord> additionals)
Sends a DNS query with the specified question with additional records using the specified name server list.
|
Future<AddressedEnvelope<DnsResponse,InetSocketAddress>> |
DnsNameResolver.query(InetSocketAddress nameServerAddr,
DnsQuestion question,
Iterable<DnsRecord> additionals,
Promise<AddressedEnvelope<? extends DnsResponse,InetSocketAddress>> promise)
Sends a DNS query with the specified question with additional records using the specified name server list.
|
Future<InetAddress> |
DnsNameResolver.resolve(String inetHost,
Iterable<DnsRecord> additionals)
Resolves the specified name into an address.
|
Future<InetAddress> |
DnsNameResolver.resolve(String inetHost,
Iterable<DnsRecord> additionals,
Promise<InetAddress> promise)
Resolves the specified name into an address.
|
Future<List<InetAddress>> |
DnsNameResolver.resolveAll(String inetHost,
Iterable<DnsRecord> additionals)
Resolves the specified host name and port into a list of address.
|
Future<List<InetAddress>> |
DnsNameResolver.resolveAll(String inetHost,
Iterable<DnsRecord> additionals,
Promise<List<InetAddress>> promise)
Resolves the specified host name and port into a list of address.
|
Copyright © 2008–2017 The Netty Project. All rights reserved.