RRSIG Record
Resource Record Signature
- Type code
- 46
- Status
- In use
- Defined in
- RFC 4034
What the RRSIG record is for
In a signed zone every authoritative record set (all records with the same owner name, class and type) gets one or more RRSIG records. Each RRSIG is a signature over that whole set, made with the private half of one of the zone DNSKEY records. A validating resolver checks the signature with the matching public key.
Signatures carry an inception and expiration time. Outside that window they are invalid, so a signed zone has to be re-signed regularly. Most signing software does this automatically, but a stopped signer will eventually make the whole zone fail validation.
RRSIG records are not normally queried directly. A resolver sets the DO bit in its query (dig +dnssec) and the server returns the RRSIG records alongside the answer.
Wire format and fields
| Field | Size | Meaning |
|---|---|---|
| Type Covered | 16 bits | The record type of the set this signature covers, e.g. A or MX. |
| Algorithm | 8 bits | The DNSSEC algorithm number of the signing key. |
| Labels | 8 bits | The number of labels in the original owner name, not counting the root label or a leading wildcard label. Used to detect answers synthesized from a wildcard. |
| Original TTL | 32 bits | The TTL of the record set as it appears in the authoritative zone, since caches decrement the TTL they serve. |
| Signature Expiration | 32 bits | The time after which the signature is invalid, in seconds since 1 January 1970 UTC, compared using serial number arithmetic (RFC 1982). |
| Signature Inception | 32 bits | The time before which the signature is invalid, in the same format. |
| Key Tag | 16 bits | The key tag of the DNSKEY that made the signature. |
| Signer's Name | domain name | The owner name of that DNSKEY, which is the zone apex. Not compressed on the wire. |
| Signature | variable | The cryptographic signature over the RRSIG fields (minus this one) and the record set in canonical form. |
In zone files and dig output the expiration and inception times are usually written as YYYYMMDDHHmmSS in UTC.
Zone file syntax
<owner> <ttl> IN RRSIG <type covered> <algorithm> <labels> <original ttl> <expiration> <inception> <key tag> <signer's name> <signature (base64)>
Example
The RRSIG record at cloudflare.com, fetched from live DNS on 27 November 2026:
cloudflare.com. 300 IN RRSIG A 13 2 300 20261128122340 20261126102340 34505 cloudflare.com. v5KCh20l0qhcRQzKoLwvkQ63GmLmx2zOnlUC1wk0Z4dER/vhqIV6UCre 2eevour46eerMb1/UFEnEtcBdAeR+w==
The signature over the cloudflare.com A records, returned with dig +dnssec. Cloudflare signs answers on the fly, so its signatures are valid for only about two days.
Common mistakes
- Signatures expiring because the signer stopped running or a cron job failed. The zone keeps serving the old RRSIGs and every validating resolver returns SERVFAIL once they pass their expiration time.
- Editing a signed zone file by hand and reloading it without re-signing, so the changed record sets have missing or invalid signatures.
- A server clock that is far off, which can make signatures look not yet valid or already expired to validators, or make the signer produce signatures with the wrong window.
- Setting a record TTL longer than the remaining signature validity. Resolvers may cache the data past the point where its signature expires.
Specifications
- RFC 4034: Resource Records for the DNS Security Extensions
- RFC 4035: Protocol Modifications for the DNS Security Extensions (Defines how servers return RRSIG records and how resolvers validate them.)
- RFC 6840: Clarifications and Implementation Notes for DNS Security (DNSSEC) (Clarifies validation details, including which signatures a validator must accept.)
- RFC 9905: Deprecating the Use of SHA-1 in DNSSEC Signature Algorithms (Deprecates creating RRSIGs with RSASHA1 and RSASHA1-NSEC3-SHA1.)
- IANA DNS Resource Record (RR) TYPEs registry: type code and status
Related record types
Domain Intelligence APIs
Get started with our easy-to-use API docs.