RRSIG
acronymnetworkingsecuritycryptography
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
- IETF, RFC 4034, Resource Records for the DNS Security Extensions (R. Arends et al.), March 2005 (read 2026-11-23): RRSIG type 46 and DS type 43, their wire and presentation formats, examples, canonical form and the key tag of Appendix B
- IETF, RFC 4035, Protocol Modifications for the DNS Security Extensions (R. Arends et al.), March 2005 (read 2026-11-23): section 5.3, the RRSIG validity checks and the reconstruction of the signed data, including the Labels rule
- IETF, RFC 8080, Edwards-Curve Digital Security Algorithm (EdDSA) for DNSSEC (O. Sury, R. Edmonds), February 2017 (read 2026-11-23): section 6 examples (Ed25519 and Ed448 DNSKEY, DS and RRSIG)
- RFC Editor, Errata for RFC 8080, Errata ID 4935, reported by Tom Thorogood and verified by Stephen Farrell on 2017-02-16 (read 2026-11-23): the section 6 RRSIGs omit the algorithm and count 3 labels instead of 2, which made the signatures invalid; corrected records given
- IANA, DNS Security Algorithm Numbers, CSV export (read 2026-11-23): algorithms 8, 13 and 15 RECOMMENDED for signing; 5 and 7 MUST NOT for signing
- IETF, RFC 6840, Clarifications and Implementation Notes for DNS Security (DNSSEC) (S. Weiler, D. Blacka, eds.), February 2013, updates RFC 4033 to 4035 and 5155 (read 2026-11-23): 5.2 unknown DS digests treated as unknown algorithms; 5.4 a resolver SHOULD accept any valid RRSIG and call an RRset bogus only if all fail; 5.5 the key tag of algorithm 1; copy taken at 18:00 by the DNS research
- ISC, BIND 9 Administrator Reference Manual, Configuration Reference, dnssec-policy signatures-validity and signatures-refresh, max-validations-per-fetch, 9.21.29-dev (read 2026-11-23): RRSIG validity default P2W (two weeks), refreshed when under P5D (five days) remain; max-validations-per-fetch default 16 and max-validation-failures-per-fetch default 1, both experimental; parental-agents; copy taken at 18:01 by the DNS research
- NLnet Labs, unbound.conf(5), Unbound documentation, latest (read 2026-11-23): access-control, by default only 127.0.0.0/8 allowed and the rest refused; quic-port default 853 for DNS-over-QUIC; nsid disabled by default, hex or ascii_; qname-minimisation default yes; val-sig-skew-min 3600 and val-sig-skew-max 86400 seconds, 10% of the signature lifetime; use-caps-for-id default no; forward-zone and forward-first
- IETF, RFC 8624, Algorithm Implementation Requirements and Usage Guidance for DNSSEC (P. Wouters, O. Sury), June 2019, obsoletes RFC 6944, obsoleted by RFC 9904 (read 2026-11-23): the earlier tables of MUST, RECOMMENDED and MUST NOT for signing and validation
- IETF, RFC 9904, DNSSEC Cryptographic Algorithm Recommendation Update Process (W. Hardaker, W. Kumari), November 2025, obsoletes RFC 8624, updates RFC 9157 (read 2026-11-23): the canonical recommendations move to IANA registry columns Use for and Implement for (signing or delegation, and validation); statuses of RFC 8624 unchanged; Tables 2 and 3
- IETF, RFC 9905, Deprecating the Use of SHA-1 in DNSSEC Signature Algorithms (W. Hardaker, W. Kumari), November 2025, updates RFC 4034 and 5155 (read 2026-11-23): RSASHA1 (5) and RSASHA1-NSEC3-SHA1 (7) MUST NOT be used to create DS, DNSKEY or RRSIG records; validators keep the code but operators treat them as unsupported, so such answers are insecure; DS digest SHA-1 MUST NOT for delegation
- CVE Program, CVE-2023-50387 record, CVE Services JSON, assigner MITRE, published 2024-02-14 (read 2026-11-23): DNSSEC aspects of RFC 4033, 4034, 4035 and 6840 allow CPU exhaustion with one or more responses, the KeyTrap issue; with many DNSKEY and RRSIG records the specification implies trying every combination
- ATHENE, National Research Center for Applied Cybersecurity, Serious Vulnerability in the Internet Infrastructure, press release, 13 February 2024 (read 2026-11-23): KeyTrap; a single DNS packet could stall widely used implementations and public resolvers; BIND stalled up to 16 hours; the requirement dates from RFC 2535 (1999) and RFC 6781 and 6840 (2012); umbrella CVE-2023-50387
- ISC, CVE-2023-50387: KeyTrap, Extreme CPU consumption in DNSSEC validator, posted 13 February 2024 (read 2026-11-23): CVSS 3.1 score 7.5; fixed in BIND 9.16.48, 9.18.24 and 9.19.21; disabling validation removes the flaw but is not recommended; thanks to Elias Heftrig, Haya Schulmann, Niklas Vogel and Michael Waidner of ATHENE
- NLnet Labs, Unbound 1.19.1 released, 13 February 2024 (read 2026-11-23): fixes CVE-2023-50387 (KeyTrap, colliding keys, signatures and many RRsets) and CVE-2023-50868 (NSEC3 hash calculations), both able to hold a validating thread on one crafted response