public interface DnsOptPseudoRecord extends DnsRecord
This is used for Extension Mechanisms for DNS (EDNS(0)).
CLASS_ANY, CLASS_CHAOS, CLASS_CSNET, CLASS_HESIOD, CLASS_IN, CLASS_NONE| Modifier and Type | Method and Description |
|---|---|
int |
extendedRcode()
Returns the
EXTENDED-RCODE which is encoded into DnsRecord.timeToLive(). |
int |
flags()
Returns the 16-bit
flags field which is encoded into the lower 16 bits of
DnsRecord.timeToLive(), as laid out by
RFC 6891. |
int |
version()
Returns the
VERSION which is encoded into DnsRecord.timeToLive(). |
dnsClass, name, timeToLive, typeint extendedRcode()
EXTENDED-RCODE which is encoded into DnsRecord.timeToLive().int version()
VERSION which is encoded into DnsRecord.timeToLive().int flags()
flags field which is encoded into the lower 16 bits of
DnsRecord.timeToLive(), as laid out by
RFC 6891.
DO, defined by RFC 3225, is the
most significant bit of that field, so (flags() & 0x8000) != 0 tests for DNSSEC OK.
Further bits are assigned by the IANA EDNS Header Flags registry; the remaining bits are
Z, which senders set to zero and receivers ignore.
Copyright © 2008–2026 The Netty Project. All rights reserved.