Interface DnsOptPseudoRecord

All Superinterfaces:
DnsRecord
All Known Subinterfaces:
DnsOptEcsRecord
All Known Implementing Classes:
AbstractDnsOptPseudoRrRecord, DefaultDnsOptEcsRecord

public interface DnsOptPseudoRecord extends DnsRecord
An OPT RR record.

This is used for Extension Mechanisms for DNS (EDNS(0)).

  • Method Details

    • extendedRcode

      int extendedRcode()
      Returns the EXTENDED-RCODE which is encoded into DnsRecord.timeToLive().
    • version

      int version()
      Returns the VERSION which is encoded into DnsRecord.timeToLive().
    • flags

      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.

      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.