RRSIG record

On this page 7

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.

FieldContentRole in validation
Type coveredRecord type signed, such as A or MXTies the signature to one RRset
AlgorithmNumber such as 8, 13 or 15Selects the signature method
LabelsCount of labels in the owner nameDetects wildcard expansion
Original TTLTTL at signing timeRestores the value used for signing
Signature expirationAbsolute UTC timestampEnds the validity window
Signature inceptionAbsolute UTC timestampStarts the validity window
Key tag16-bit identifierHelps find the right DNSKEY
Signer’s nameZone apex that signedNames the zone holding the key
SignatureBase64 binary dataProof checked with the public key
Fields of an RRSIG record

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 numberNameTypical signature sizeCurrent status
5RSA/SHA-1128-256 bytesDeprecated, must not sign
8RSA/SHA-256128-256 bytesWidely deployed
10RSA/SHA-512128-256 bytesRarely used
13ECDSA P-256 with SHA-25664 bytesRecommended
14ECDSA P-384 with SHA-38496 bytesSupported, uncommon
15Ed2551964 bytesRecommended, growing support
Common DNSSEC algorithms used in RRSIG records

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.

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 typeWhat it containsWhere it livesQuestion it answers
RRSIG recordSignature over an RRsetSame zone as the signed dataIs this data authentic
DNSKEY recordPublic keys of the zoneZone apexWhich key verifies the signatures
DS recordHash of a child keyParent zoneDoes the parent vouch for the key
NSEC recordNext existing nameSame zoneIs a name truly absent
NSEC3 recordHashed next nameSame zoneIs a name absent, with less exposure
Roles of the main DNSSEC record types

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.

SituationRecommended choiceReason
New zone being signedAlgorithm 13 with automatic signingShort signatures and broad support
Very large zoneRe-sign incrementally across the windowAvoids load spikes on the signer
Frequent dynamic updatesOnline signing on the primaryNew records are signed at once
Long secondary outage riskValidity of at least two weeksPrevents expiry before recovery
Key rollover plannedPre-publish new keys firstKeeps caches able to validate
Operational decisions for RRSIG records

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.