DNSSEC Signs the Answer

How a signed DNS answer is checked, on published vectors: the key tag and the DS digest of a DNSKEY, the fields of an RRSIG, the canonical bytes that are signed and one Ed25519 verification, and what a valid signature does not say. The records are published or constructed; no DNS message is parsed and nothing is sent.

Keys and Digests

A DNSKEY has a key tag, and the parent's DS holds a digest of it, and an RRSIG says which key to try.

  1. A DNSKEY Has a Key Tag

    a 16-bit checksum of the RDATA

  2. A DS Digests the DNSKEY

    digest of owner name and DNSKEY RDATA

  3. An RRSIG Names Its Signer

    the fields of an RRSIG, read by position

The Signature

The signed data is built in canonical form, the signature is verified, and a valid signature has limits.

  1. The Signed Data Is Canonical

    the 74 bytes that the published signature covers

  2. Verify the RRSIG

    rebuild, check the time, verify

  3. What a Valid Signature Does Not Say

    the limits of one valid signature