SIG Record
Signature
- Type code
- 24
- Status
- Query or pseudo-record type, never stored in a zone
- Defined in
- RFC 2535
What the SIG record is for
RFC 2535 used SIG to sign record sets in a zone. RFC 3755 replaced it with RRSIG, which has the same format but a new type number, and says SIG should not appear in signed zones for DNSSEC.
Type 24 remains for SIG(0), defined in RFC 2931. A SIG(0) record is added to the end of the additional section of a request or response and signs the whole message with a private key. The receiver checks it against the signer KEY record. In that use the Type Covered field is 0 (hence the name), the owner name is the root, the class is ANY and the TTL is 0, and the record is never stored in a zone or cache.
SIG(0) can authenticate dynamic updates or other messages without the shared secret TSIG needs, but it is supported by few implementations and rarely used.
SIG records do not appear in zones, so this looks up the RRSIG records of cloudflare.com, the type that replaced SIG for DNSSEC.
Wire format and fields
| Field | Size | Meaning |
|---|---|---|
| type covered | 16 bits | The type of the signed record set, or 0 for SIG(0). |
| algorithm | 8 bits | The algorithm number of the signing key. |
| labels | 8 bits | The number of labels in the original owner name; 0 for SIG(0). |
| original TTL | 32 bits | The original TTL of the signed set; 0 for SIG(0). |
| signature expiration | 32 bits | The end of the validity window, in seconds since 1 January 1970 UTC. |
| signature inception | 32 bits | The start of the validity window, in the same format. |
| key tag | 16 bits | The key tag of the KEY that made the signature. |
| signer's name | domain name | The owner name of that KEY record. |
| signature | variable | The signature. For SIG(0) it covers the SIG RDATA (minus this field) and the message as it was before the SIG(0) record was added. |
Zone file syntax
<owner> <ttl> IN SIG <type covered> <algorithm> <labels> <original ttl> <expiration> <inception> <key tag> <signer's name> <signature (base64)>
Common mistakes
- Signing zone data with SIG instead of RRSIG. Validators ignore SIG for DNSSEC, and RFC 3755 says a SIG in a signed zone must itself have an RRSIG.
- Looking for SIG(0) records in a zone or cache. They exist only in the message they sign.
- Expecting SIG(0) to work for dynamic updates without checking server support. Most deployments use TSIG instead.
Specifications
- RFC 2535: Domain Name System Security Extensions
- RFC 2931: DNS Request and Transaction Signatures ( SIG(0)s ) (Defines SIG(0), the remaining use of the type.)
- RFC 3755: Legacy Resolver Compatibility for Delegation Signer (DS) (Replaces SIG with RRSIG for DNSSEC and keeps type 24 for SIG(0) only.)
- 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.