decoders.
| Modifier and Type | Field and Description |
|---|---|
| public static final Function | A
Decodes A resource records into IPv4 addresses. |
| public static final Function | AAAA
Decodes AAAA resource records into IPv6 addresses. |
| private static final Map | |
| public static final Function | DOMAIN
Decodes any record that simply returns a domain name, such as NS (name server) and CNAME (canonical name) resource records. |
| private static final Logger | |
| public static final Function | MX
Decodes MX (mail exchanger) resource records. |
| public static final Function | SOA
Decodes SOA (start of authority) resource records. |
| public static final Function | SRV
Decodes SRV (service) resource records. |
| public static final Function |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static Function | |
| public static <T> T | |
| pack-priv static String | |
| pack-priv static String |
| A | back to summary |
|---|---|
| public static final Function<DnsRecord, String> A Decodes A resource records into IPv4 addresses. | |
| AAAA | back to summary |
|---|---|
| public static final Function<DnsRecord, String> AAAA Decodes AAAA resource records into IPv6 addresses. | |
| decoders | back to summary |
|---|---|
| private static final Map<DnsRecordType, Function<DnsRecord, ?>> decoders | |
| DOMAIN | back to summary |
|---|---|
| public static final Function<DnsRecord, String> DOMAIN Decodes any record that simply returns a domain name, such as NS (name server) and CNAME (canonical name) resource records. | |
| log | back to summary |
|---|---|
| private static final Logger log | |
| MX | back to summary |
|---|---|
| public static final Function<DnsRecord, MxRecordImpl> MX Decodes MX (mail exchanger) resource records. | |
| SOA | back to summary |
|---|---|
| public static final Function<DnsRecord, StartOfAuthorityRecord> SOA Decodes SOA (start of authority) resource records. | |
| SRV | back to summary |
|---|---|
| public static final Function<DnsRecord, SrvRecordImpl> SRV Decodes SRV (service) resource records. | |
| TXT | back to summary |
|---|---|
| public static final Function<DnsRecord, List<String>> TXT | |
| RecordDecoder | back to summary |
|---|---|
| public RecordDecoder() | |
| address | back to summary |
|---|---|
| pack-priv static Function | |
| decode | back to summary |
|---|---|
| public static <T> T decode(DnsRecord record) Decodes a resource record and returns the result.
| |
| getName | back to summary |
|---|---|
| pack-priv static String getName(ByteBuf buf, int offset) Retrieves a domain name given a buffer containing a DNS packet without advancing the readerIndex for the buffer. | |
| readName | back to summary |
|---|---|
| pack-priv static String readName(ByteBuf buf) Retrieves a domain name given a buffer containing a DNS packet. If the name contains a pointer, the position of the buffer will be set to directly after the pointer's index after the name has been read. | |