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 |
---|---|
DatagramDnsQuery |
DatagramDnsQuery.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 |
DnsResponse.addRecord(DnsSection section,
DnsRecord record) |
DnsQuery |
DnsQuery.addRecord(DnsSection section,
DnsRecord record) |
DnsMessage |
AbstractDnsMessage.addRecord(DnsSection section,
DnsRecord record) |
DatagramDnsResponse |
DatagramDnsResponse.addRecord(DnsSection section,
DnsRecord record) |
DnsQuery |
DefaultDnsQuery.addRecord(DnsSection section,
DnsRecord record) |
DnsResponse |
DefaultDnsResponse.addRecord(DnsSection section,
DnsRecord record) |
DatagramDnsQuery |
DatagramDnsQuery.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 |
DnsResponse.addRecord(DnsSection section,
int index,
DnsRecord record) |
DnsQuery |
DnsQuery.addRecord(DnsSection section,
int index,
DnsRecord record) |
DnsMessage |
AbstractDnsMessage.addRecord(DnsSection section,
int index,
DnsRecord record) |
DatagramDnsResponse |
DatagramDnsResponse.addRecord(DnsSection section,
int index,
DnsRecord record) |
DnsQuery |
DefaultDnsQuery.addRecord(DnsSection section,
int index,
DnsRecord record) |
DnsResponse |
DefaultDnsResponse.addRecord(DnsSection section,
int index,
DnsRecord record) |
void |
DefaultDnsRecordEncoder.encodeRecord(DnsRecord record,
ByteBuf out) |
void |
DnsRecordEncoder.encodeRecord(DnsRecord record,
ByteBuf out)
Encodes a
DnsRecord . |
DatagramDnsQuery |
DatagramDnsQuery.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 |
DnsResponse.setRecord(DnsSection section,
DnsRecord record) |
DnsQuery |
DnsQuery.setRecord(DnsSection section,
DnsRecord record) |
DnsMessage |
AbstractDnsMessage.setRecord(DnsSection section,
DnsRecord record) |
DatagramDnsResponse |
DatagramDnsResponse.setRecord(DnsSection section,
DnsRecord record) |
DnsQuery |
DefaultDnsQuery.setRecord(DnsSection section,
DnsRecord record) |
DnsResponse |
DefaultDnsResponse.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 |
---|---|
Future<List<DnsRecord>> |
DnsNameResolver.resolveAll(DnsQuestion question)
Resolves the
DnsRecord s that are matched by the specified DnsQuestion . |
Future<List<DnsRecord>> |
DnsNameResolver.resolveAll(DnsQuestion question,
Iterable<DnsRecord> additionals)
Resolves the
DnsRecord s that are matched by the specified DnsQuestion . |
Future<List<DnsRecord>> |
DnsNameResolver.resolveAll(DnsQuestion question,
Iterable<DnsRecord> additionals,
Promise<List<DnsRecord>> promise)
Resolves the
DnsRecord s that are matched by the specified DnsQuestion . |
Modifier and Type | Method and Description |
---|---|
DnsCacheEntry |
DefaultDnsCache.cache(String hostname,
DnsRecord[] additionals,
InetAddress address,
long originalTtl,
EventLoop loop) |
DnsCacheEntry |
NoopDnsCache.cache(String hostname,
DnsRecord[] additional,
InetAddress address,
long originalTtl,
EventLoop loop) |
DnsCacheEntry |
DnsCache.cache(String hostname,
DnsRecord[] additionals,
InetAddress address,
long originalTtl,
EventLoop loop)
Create a new
DnsCacheEntry and cache a resolved address for a given hostname. |
DnsCacheEntry |
DefaultDnsCache.cache(String hostname,
DnsRecord[] additionals,
Throwable cause,
EventLoop loop) |
DnsCacheEntry |
NoopDnsCache.cache(String hostname,
DnsRecord[] additional,
Throwable cause,
EventLoop loop) |
DnsCacheEntry |
DnsCache.cache(String hostname,
DnsRecord[] additionals,
Throwable cause,
EventLoop loop)
Cache the resolution failure for a given hostname.
|
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<? extends DnsCacheEntry> |
DefaultDnsCache.get(String hostname,
DnsRecord[] additionals) |
List<? extends DnsCacheEntry> |
NoopDnsCache.get(String hostname,
DnsRecord[] additionals) |
List<? extends DnsCacheEntry> |
DnsCache.get(String hostname,
DnsRecord[] additionals)
Return the cached entries for the given hostname.
|
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<DnsRecord>> |
DnsNameResolver.resolveAll(DnsQuestion question,
Iterable<DnsRecord> additionals)
Resolves the
DnsRecord s that are matched by the specified DnsQuestion . |
Future<List<DnsRecord>> |
DnsNameResolver.resolveAll(DnsQuestion question,
Iterable<DnsRecord> additionals,
Promise<List<DnsRecord>> promise)
Resolves the
DnsRecord s that are matched by the specified DnsQuestion . |
Future<List<DnsRecord>> |
DnsNameResolver.resolveAll(DnsQuestion question,
Iterable<DnsRecord> additionals,
Promise<List<DnsRecord>> promise)
Resolves the
DnsRecord s that are matched by the specified DnsQuestion . |
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–2024 The Netty Project. All rights reserved.