ZONEMD Record
Message Digest for DNS Zones
- Type code
- 63
- Status
- In use
- Defined in
- RFC 8976
What the ZONEMD record is for
ZONEMD (RFC 8976) lets anyone with a complete copy of a zone check that the copy is exactly what the operator published. The digest covers all the zone's records, including delegation NS records and glue, which DNSSEC does not sign.
With DNSSEC, the ZONEMD record is signed, so the digest also proves where the zone came from. Without DNSSEC it only detects accidental corruption. The root zone publishes a ZONEMD record, which lets resolvers that keep a local copy of the root (RFC 8806) verify it.
Wire format and fields
| Field | Size | Meaning |
|---|---|---|
| Serial | 32 bits | The SOA serial of the zone version the digest was computed for. |
| Scheme | 8 bits | How the zone data is collated before hashing. 1 is SIMPLE, the only standard scheme. |
| Hash Algorithm | 8 bits | The hash function: 1 is SHA-384, 2 is SHA-512. |
| Digest | variable | The hash output; its length follows from the RDATA length. |
Zone file syntax
<owner> <ttl> IN ZONEMD <serial> <scheme> <hash algorithm> <digest>
Example
The ZONEMD record at ., fetched from live DNS on 27 November 2026:
. 86400 IN ZONEMD 2026112700 1 1 FBE58F74F16B922A7FDE104116354EA0DE8BFA69F4813D48…
The root zone's ZONEMD record. The SHA-384 digest is truncated and changes with every new root zone serial.
Common mistakes
- Changing the zone without recomputing the digest. A stale ZONEMD makes every verifying consumer reject the zone.
- Computing the digest before signing the zone. RFC 8976 adds a placeholder ZONEMD, signs the zone, computes the digest, then signs the ZONEMD record again.
- A ZONEMD Serial that does not match the SOA serial of the same version. The record is then not valid for that zone.
- Publishing ZONEMD below the apex and expecting it to be checked. Only apex ZONEMD records are used for verification.
Specifications
- RFC 8976: Message Digest for DNS Zones
- 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.