Interface DnsOptPseudoRecord
- All Superinterfaces:
DnsRecord
- All Known Subinterfaces:
DnsOptEcsRecord
- All Known Implementing Classes:
AbstractDnsOptPseudoRrRecord, DefaultDnsOptEcsRecord
An OPT RR record.
This is used for Extension Mechanisms for DNS (EDNS(0)).
-
Field Summary
Fields inherited from interface DnsRecord
CLASS_ANY, CLASS_CHAOS, CLASS_CSNET, CLASS_HESIOD, CLASS_IN, CLASS_NONEModifier and TypeFieldDescriptionstatic final intDNS resource record class:ANYstatic final intDNS resource record class:CHAOSstatic final intDNS resource record class:CSNETstatic final intDNS resource record class:HESIODstatic final intDNS resource record class:INstatic final intDNS resource record class:NONE -
Method Summary
Modifier and TypeMethodDescriptionintReturns theEXTENDED-RCODEwhich is encoded intoDnsRecord.timeToLive().intflags()Returns the 16-bitflagsfield which is encoded into the lower 16 bits ofDnsRecord.timeToLive(), as laid out by RFC 6891.intversion()Returns theVERSIONwhich is encoded intoDnsRecord.timeToLive().Methods inherited from interface DnsRecord
dnsClass, name, timeToLive, type
-
Method Details
-
extendedRcode
int extendedRcode()Returns theEXTENDED-RCODEwhich is encoded intoDnsRecord.timeToLive(). -
version
int version()Returns theVERSIONwhich is encoded intoDnsRecord.timeToLive(). -
flags
int flags()Returns the 16-bitflagsfield which is encoded into the lower 16 bits ofDnsRecord.timeToLive(), as laid out by RFC 6891.DO, defined by RFC 3225, is the most significant bit of that field, so(flags() & 0x8000) != 0tests forDNSSEC OK. Further bits are assigned by the IANAEDNS Header Flagsregistry; the remaining bits areZ, which senders set to zero and receivers ignore.
-