RRSIG

acronym

networkingsecuritycryptography

Kept in this browser · My desk

Stands for: Resource Record Signature

An RRSIG (resource record signature, type 46) is the DNSSEC record that holds a digital signature over one RRset, with the algorithm, validity window and key tag a validator needs to find the DNSKEY that verifies it.

Every signed record set in a DNSSEC (DNS Security Extensions) zone has an RRSIG beside it. The RRSIG names the type it covers, the algorithm, the number of labels in the owner name, the original TTL (time to live), an expiration and an inception time, a key tag and the signer's zone, then the signature. A validator checks those fields, rebuilds the exact bytes that were signed and verifies them with the matching DNSKEY; an expired or mismatched RRSIG makes the answer bogus.

What it is. RFC (Request for Comments) 4034, of March 2005, defines the RRSIG (resource record signature) record: "Digital signatures are stored in RRSIG resource records", one per RRset and algorithm, and "The Type value for the RRSIG RR type is 46". Its record data (RDATA) holds, in order, the Type Covered, the Algorithm, the Labels count, the Original TTL (time to live), the Signature Expiration and Inception, the Key Tag, the Signer's Name and the Signature. RFC 4034's own example signs the A RRset of host.example.com with algorithm 5, 3 labels, original TTL 86400, a validity from 20030220173103 to 20030322173103 and key tag 2642; recomputing the key tag of the example.com key printed in the same RFC's section 2.3 gives 2642, so the two examples belong together.

Where it came from. RFC 4034 is one of the three documents, with RFC 4033 and 4035, that rewrote DNSSEC (the DNS Security Extensions) in March 2005; it "obsoletes RFC 2535", the design of 1999, "and incorporates changes from all updates to RFC 2535". One rule surprises readers of dig output: "The TTL value of an RRSIG RR MUST match the TTL value of the RRset it covers", so the RRSIGs at one name carry different TTLs. RFC 6840 (February 2013) settled the case of several signatures over one RRset: a resolver "SHOULD accept any valid RRSIG as sufficient" and call the RRset bogus only if all fail.

A real one, field by field. Asked with dig +dnssec on 23 November 2026, a.dns.br returned the SOA (start of authority) of .br with "br. 172800 IN RRSIG SOA 13 1 172800 20261208022005 20261124012005 32480 br." and a 64-octet signature. In order: it covers the SOA RRset; algorithm 13 is ECDSA (Elliptic Curve Digital Signature Algorithm) on P-256 with SHA-256 (Secure Hash Algorithm, 256 bits); Labels is 1, since br. has one label; the original TTL is 172800 seconds, two days; it expires at 02:20:05 UTC (Coordinated Universal Time) on 8 December 2026 and became valid at 01:20:05 UTC on 24 November, a window of 14 days and one hour; key tag 32480 points to the zone-signing key "br. 21600 IN DNSKEY 256 3 13", whose tag recomputes to 32480 from its DNSKEY (DNS public key) data; and the signer is br. itself.

The time window. Expiration and inception are 32-bit counts of seconds since 1970, compared with serial number arithmetic (RFC 1982), so a signature "MUST NOT be used for authentication prior to the inception date and MUST NOT be used for authentication after the expiration date", and the fields "cannot refer to dates more than 68 years in either the past or the future". In presentation form they may be written as YYYYMMDDHHmmSS or as plain seconds; the 14-digit form can never be confused with the at most 10-digit one.

Keeping signatures alive. A signature expires whether or not the data change, so signers re-sign on a schedule: BIND's dnssec-policy gives each RRSIG a validity of two weeks by default (P2W) and renews it when under five days (P5D) remain. Validators allow for clock error: Unbound accepts a skew of 10% of the signature's lifetime, between 3,600 seconds (val-sig-skew-min) and 86,400 (val-sig-skew-max); for the .br signature 10% is about 33.7 hours, so the 24-hour cap applies. A zone whose signer stops re-signing turns bogus for validating resolvers once the expiration passes.

How a validator uses it. RFC 4035, section 5.3.1, lists the conditions: same owner and class as the RRset, a signer's name equal to the zone containing it, a type covered equal to the RRset's type, a Labels value not greater than the owner's label count, the validator's time inside the window, and a DNSKEY in the zone apex with matching name, algorithm and key tag and the Zone Key flag set. It then reconstructs "signed_data = RRSIG_RDATA | RR(1) | RR(2)...": the RRSIG fields without the signature, followed by each record in canonical form (lower-case names, no compression, the original TTL) and canonical order. If the Labels value is smaller than the owner's label count, the name signed was a wildcard; if it is larger, "the RRSIG RR did not pass the necessary validation checks and MUST NOT be used". Any one valid RRSIG authenticates the RRset.

A lesson in the examples. RFC 8080 (February 2017), which brought Ed25519 and Ed448 to DNSSEC, printed RRSIG examples with the algorithm missing and a Labels value of 3 for example.com, which has 2. Erratum 4935, reported by Tom Thorogood and verified on 2017-02-16, explains that the generating script "fails to print the algorithm identifier" and counted the root as a label, which "causes invalid signatures to be produced", and gives corrected records. Checked on 2026-11-23, the original Ed25519 signature verifies only over data built with Labels 3, which a validator must reject, and the corrected one verifies with Labels 2.

Algorithms. The IANA (Internet Assigned Numbers Authority) registry of DNSSEC algorithm numbers, read on 2026-11-23, marks RSA/SHA-256 (8), ECDSA P-256 with SHA-256 (13) and Ed25519 (15) as RECOMMENDED for signing, and RSA/SHA-1 (5) and its NSEC3 variant (7) as MUST NOT for signing while still allowed for validation. In dig output the record appears after the RRset it covers when +dnssec is set.

Where the algorithm rules now live. RFC 8624 (June 2019, P. Wouters and O. Sury) listed which algorithms to implement and deploy until November 2025, when RFC 9904 (W. Hardaker and W. Kumari) moved that list into IANA's registry without changing any status, and RFC 9905 made RSASHA1 (5) and RSASHA1-NSEC3-SHA1 (7) MUST NOT for creating DNSKEY and RRSIG records: validators "MUST continue to support validation" with them, but operators "MUST treat" them as unsupported, so such answers become insecure.

KeyTrap. The CVE (Common Vulnerabilities and Exposures) record CVE-2023-50387, published on 14 February 2024, found the flaw in the rules themselves: "when there is a zone with many DNSKEY and RRSIG records, the protocol specification implies that an algorithm must evaluate all combinations". ATHENE, Germany's National Research Center for Applied Cybersecurity (Elias Heftrig, Haya Schulmann, Niklas Vogel and Michael Waidner), named it KeyTrap, said that "with just a single DNS packet" an attacker could stall widely used resolvers, BIND "for as long as 16 hours", and traced it to RFC 2535 and to RFC 6781 and 6840, which it dates to 2012 (RFC 6840 is dated February 2013). ISC (Internet Systems Consortium) scored it 7.5 on the CVSS (Common Vulnerability Scoring System) and fixed BIND in 9.16.48, 9.18.24 and 9.19.21; NLnet Labs fixed Unbound in 1.19.1.

How it differs. An RRSIG is a signature and proves nothing alone: the DNSKEY record holds the key that checks it, the DS (Delegation Signer) record in the parent vouches for that key, and NSEC (Next Secure) and NSEC3 records, themselves signed, prove absence. TSIG (Secret Key Transaction Authentication for DNS) and SIG(0) sign one transaction between two machines; an RRSIG signs data and travels with it through every cache.

Also known as: rrsig record, resource record signature, dnssec signature, rr type 46

Sources

← Back to R Back to the glossary