Interface DnsOptPseudoRecord

    • Method Detail

      • 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.