An RRSIG record (Resource Record Signature) is the DNSSEC record type that stores a cryptographic signature over one complete set of DNS records with the same owner name, class and type. Among the DNS records of the Internet, it is the piece that turns ordinary answers into verifiable data: a validating resolver uses the matching public key to confirm that the signed records came from the zone owner and were not altered in transit or in a cache.
The type is defined in RFC 4034 and carries type code 46. An RRSIG record never stands alone; it always accompanies the records it signs and depends on the DNSKEY record for its public key and on the DS record in the parent zone for the chain of trust.
How an RRSIG record signs an RRset
An RRSIG record signs an RRset, meaning every record that shares the same owner name, class and type, rather than an individual record. If a name has three A records, a single RRSIG covers all three together, so removing or adding one address invalidates the signature. This design prevents an attacker from silently dropping one member of a set.
To produce the signature, the signing software puts the RRset into canonical form: names are lowercased, records are sorted in a defined order and the TTL is replaced by the original TTL. It then prepends the RRSIG header fields and signs the whole byte string with the private zone-signing key. A resolver repeats the same canonicalization and checks the result against the public key published in the zone.
The table below lists the fields of the RRSIG record and the role each one plays during validation.
| Field | Content | Role in validation |
|---|---|---|
| Type covered | Record type signed, such as A or MX | Ties the signature to one RRset |
| Algorithm | Number such as 8, 13 or 15 | Selects the signature method |
| Labels | Count of labels in the owner name | Detects wildcard expansion |
| Original TTL | TTL at signing time | Restores the value used for signing |
| Signature expiration | Absolute UTC timestamp | Ends the validity window |
| Signature inception | Absolute UTC timestamp | Starts the validity window |
| Key tag | 16-bit identifier | Helps find the right DNSKEY |
| Signer’s name | Zone apex that signed | Names the zone holding the key |
| Signature | Base64 binary data | Proof checked with the public key |
Signature algorithms and validity windows
The algorithm field determines the size of the signature and how quickly it can be verified. Modern zones increasingly use ECDSA P-256 (algorithm 13) or Ed25519 (algorithm 15), because their signatures are far shorter than RSA signatures and keep DNS responses small enough to avoid fragmentation.
| Algorithm number | Name | Typical signature size | Current status |
|---|---|---|---|
| 5 | RSA/SHA-1 | 128-256 bytes | Deprecated, must not sign |
| 8 | RSA/SHA-256 | 128-256 bytes | Widely deployed |
| 10 | RSA/SHA-512 | 128-256 bytes | Rarely used |
| 13 | ECDSA P-256 with SHA-256 | 64 bytes | Recommended |
| 14 | ECDSA P-384 with SHA-384 | 96 bytes | Supported, uncommon |
| 15 | Ed25519 | 64 bytes | Recommended, growing support |
Unlike certificates, an RRSIG record carries absolute inception and expiration times. Signing tools typically set a validity of one to four weeks and re-sign automatically well before expiry. Inception is often backdated by an hour or more to tolerate clock skew on resolvers, because a resolver with a wrong clock may treat a valid signature as not yet active or already expired.
RRSIG compared with related DNSSEC records
An RRSIG record is only one element of a DNSSEC chain of trust, and it is meaningful only together with the key and delegation records around it. The comparison below shows where each record type sits.
| Record type | What it contains | Where it lives | Question it answers |
|---|---|---|---|
| RRSIG record | Signature over an RRset | Same zone as the signed data | Is this data authentic |
| DNSKEY record | Public keys of the zone | Zone apex | Which key verifies the signatures |
| DS record | Hash of a child key | Parent zone | Does the parent vouch for the key |
| NSEC record | Next existing name | Same zone | Is a name truly absent |
| NSEC3 record | Hashed next name | Same zone | Is a name absent, with less exposure |
Validation runs from the top down. The resolver trusts the root key as a trust anchor, verifies the RRSIG over each DNSKEY set, follows DS records into child zones and finally checks the RRSIG over the requested answer. A break at any link turns the whole answer into a validation failure. Denial-of-existence answers are signed too: every NSEC or NSEC3 record arrives with its own RRSIG.
Operating signed zones in practice
Most operators no longer create RRSIG records by hand. Authoritative servers and signers perform automatic signing and re-signing, either inline as zone data changes or in periodic batches. The decision table below summarizes common operational choices.
| Situation | Recommended choice | Reason |
|---|---|---|
| New zone being signed | Algorithm 13 with automatic signing | Short signatures and broad support |
| Very large zone | Re-sign incrementally across the window | Avoids load spikes on the signer |
| Frequent dynamic updates | Online signing on the primary | New records are signed at once |
| Long secondary outage risk | Validity of at least two weeks | Prevents expiry before recovery |
| Key rollover planned | Pre-publish new keys first | Keeps caches able to validate |
Tools such as dig +dnssec display RRSIG records next to the answer, and delv performs full validation locally. Monitoring should alert when the remaining signature lifetime drops below a threshold, typically a few days, so that a stalled signer is noticed long before resolvers start failing.
Failure modes and common mistakes
Because a bad signature makes data disappear for validating users, RRSIG problems usually surface as SERVFAIL responses rather than visible errors. The following list covers the failures seen most often.
- Expired signatures after a signing process or cron job silently stops.
- Missing RRSIG records on some secondaries after an incomplete zone transfer.
- Key tag mismatch when the signing key is removed from the DNSKEY set too early.
- Edited records left unsigned when a zone file is changed outside the signer.
- Oversized responses with RSA signatures that trigger fragmentation or fallback to TCP.
A common misconception is that an RRSIG record encrypts DNS data. It does not: DNSSEC provides authenticity and integrity, not confidentiality. Privacy in transit requires separate protocols such as DNS over TLS or DNS over HTTPS.
In everyday language
An RRSIG record works like a tamper-evident seal on a package of DNS answers. When a computer asks where a website lives, the reply can come with a seal made by the owner of the domain. A checking resolver looks at the seal, compares it with the owner’s published key and accepts the answer only if everything matches.
The seal also has a use-by date. If nobody renews it in time, careful resolvers reject the answer, much as a pharmacy refuses medicine past its expiry date. So the key takeaway is simple: RRSIG proves the answer is genuine, but it has to be refreshed regularly.
Seen in the real world
A regional university runs its own signed zone with algorithm 13 and a signature validity of 14 days, re-signed every 7 days by its primary DNS server. During a data center migration, the signing service on the new primary was not enabled, while the secondaries kept serving the last signed copy of the zone.
Twelve days later, the monitoring system reported that the remaining RRSIG lifetime had fallen below 48 hours. Administrators enabled the signer, verified fresh signatures with dig +dnssec, and pushed the zone to all secondaries. The outcome was that no validating resolver ever returned SERVFAIL for the university’s names, while an unmonitored zone would have gone dark for every user behind a validating resolver two days later.