Support Library
DNSSEC Chain of Trust and Validation Errors
DNSSEC only protects a name when every link from the root down checks out. This guide explains each link, what the DNSSEC Chain Validator checks at it, and how to fix each problem it reports.
The short answer
A validating resolver trusts one thing in advance: the root zone's key-signing key, published by IANA as the root trust anchor. Everything else is proven link by link. Each parent zone publishes a DS record that holds a hash of its child's key-signing key; that key signs the child's DNSKEY set; and the keys in that set sign the child's records. If any link fails, the resolver answers SERVFAIL rather than an answer it can't prove.
An unsigned domain resolves for everyone. A domain whose chain is broken stops resolving for everyone behind a validating resolver, which today is a large share of internet users.
How the chain is walked
For a name such as www.example.com, the DNSSEC Chain Validator does what RFC 4035 section 5 describes for a validating resolver, and checks every signature itself with the published keys.
| Link | What is checked |
|---|---|
| Trust anchor | A root DNSKEY whose SHA-256 digest equals one of IANA's root anchors, and a valid signature from it over the root DNSKEY set |
| DS record | The parent publishes a DS record for the zone, signed by one of the parent's keys |
| DS to DNSKEY | The DS key tag, algorithm and digest match a DNSKEY the zone publishes (RFC 4034 section 5) |
| DNSKEY set | The key the DS record names signs the whole DNSKEY set |
| Zone data | A key from the trusted set signs the zone's SOA record and the answer for the name, or the NSEC or NSEC3 proof that it doesn't exist |
| Signature times | Each signature is inside its inception and expiration times |
Records are fetched from Cloudflare's 1.1.1.1 (or Google's 8.8.8.8) over DNS over HTTPS with the DO bit, which asks for signatures, and the CD bit, which tells a validating resolver to hand back records even when they fail. The result is what the internet sees from that resolver at that moment; a change you just made may not show until caches expire.
Not signed, or signed without a DS record
Not signed means the parent has no DS record for the zone. Nothing is broken. To turn DNSSEC on, enable signing at your DNS provider, then copy the DS record it shows into your registrar's DNSSEC settings. The parent's signed NSEC or NSEC3 records prove the DS is absent, which is how resolvers know the zone is meant to be unsigned.
Signed, but no DS record means the zone publishes DNSKEY records and signatures, but the registrar step never happened, so the signatures protect nothing. Add the DS record at the registrar.
Broken chains of trust
| Finding | Usual cause | Fix |
|---|---|---|
| DS record but no DNSKEY | The domain moved to a DNS provider that doesn't sign, and the old DS record stayed at the registrar | Turn on signing at the new provider and replace the DS record, or remove the DS record |
| No DS record matches the keys | A KSK rollover or provider move replaced the keys before the DS record was updated | Replace the DS record at the registrar with the one the provider shows now |
| DS key doesn't sign the DNSKEY set | The new KSK was published but isn't signing yet, or the old one stopped too early | Have the key the DS record names sign the DNSKEY set again |
| DNSKEY set not signed | The signer stopped, or a server serves an unsigned copy | Re-sign the zone and check every name server |
| DS record not signed | A fault at the parent zone | Report it to the registry or parent zone operator |
| No proof the DS record is absent | The parent's name servers failed the DS lookup, or answered "no DS" without NSEC or NSEC3 records that cover the name | Check the parent's name servers and report it to the registry or parent zone operator |
The debugging guide walks through confirming these with dig and delv.
Missing, failing and expiring signatures
Every RRset in a signed zone needs an RRSIG made by one of the zone's keys. The checker reports an unsigned SOA or answer when no signature comes back, a signature that doesn't verify when the cryptographic check fails (the records changed after signing, or another key made it), and signatures that have expired or are not valid yet. It also checks the NSEC or NSEC3 records that prove a name or record type doesn't exist: that they are signed, and that they actually cover the name and type asked (including the wildcard and NSEC3 closest encloser proofs), because resolvers fail negative answers they can't prove. A wildcard answer needs the same proof that the name itself doesn't exist. When the name is an alias (a CNAME or DNAME), the checker follows it to the address at the end: a target in the same zone is checked with that zone's keys, and a target in another zone gets its own chain of trust traced, so a signed alias to an unsigned or broken host doesn't pass as secure. An alias chain longer than one check follows is reported as incomplete, with a link to check its target on its own.
Signers renew signatures automatically, well before they expire. A signature in the last fifth of its lifetime and less than three days from expiry is flagged as expiring soon, because it usually means re-signing has stalled. Online signers such as Cloudflare sign for a day or two at a time, which is normal and not flagged.
Algorithms and key sizes
RFC 8624 sets which algorithms validators support. A validator ignores DS records whose algorithm or digest it must not use, and when none are left, it treats the zone as unsigned (RFC 4035 section 5.2).
| Algorithm or digest | Number | What the checker reports |
|---|---|---|
| ECDSA P-256 with SHA-256 | 13 | Recommended; verified |
| RSA/SHA-256 | 8 | Recommended; verified; RSA keys under 2048 bits are flagged |
| Ed25519 | 15 | Recommended; verified |
| ECDSA P-384, RSA/SHA-512 | 14, 10 | Supported; verified |
| Ed448 | 16 | Supported by validators; listed but not verified by this checker |
| RSA/SHA-1, RSASHA1-NSEC3-SHA1 | 5, 7 | Deprecated: zones must not sign with them |
| RSA/MD5, DSA, DSA-NSEC3-SHA1, GOST | 1, 3, 6, 12 | Must not be used: the zone counts as unsigned |
| DS digest SHA-1 | Digest type 1 | Flagged: publish a SHA-256 (type 2) DS record instead. Next to a SHA-256 DS record it is ignored (RFC 4509), so it can't stand in for a SHA-256 one that no longer matches |
The current status of every number is in the IANA registry linked below.
Rollover problems
- A DS record points to a key that is gone. Another DS still matches, so the domain validates, but the leftover from an earlier rollover should be removed.
- An algorithm is published but doesn't sign. RFC 4035 section 2.2 asks a zone to sign with every algorithm in its DNSKEY set. An algorithm rollover has to add the new signatures first, then the new keys, then the DS record, and remove the old algorithm last.
- A revoked key. The REVOKE flag from RFC 5011 marks a key being retired. Normal during a trust anchor rollover.
- CDS or CDNSKEY changes waiting. The zone publishes the DS records it wants (RFC 7344) and they differ from what the parent publishes. A "delete" record (RFC 8078) asks the parent to remove DNSSEC.
See DNSSEC Key Rollovers for the safe order of each kind of rollover.
FAQ
Why does my domain work for some people and not others?
Most resolvers that ISPs and public services run validate DNSSEC, so a broken chain makes them answer SERVFAIL. Resolvers that don't validate still answer. That split is the typical sign of a DS record that no longer matches the zone's keys.
Is an unsigned domain a problem?
Not a breakage. An unsigned domain resolves for everyone; resolvers simply can't tell a forged answer from a real one. A broken chain is worse than no DNSSEC at all, because it stops validating resolvers from answering.
Why does the checker turn off checking when it asks resolvers?
It sets the CD (Checking Disabled) bit so a validating resolver hands back records even when their signatures fail. Without it, a broken zone answers SERVFAIL and there would be nothing to examine. The checker then verifies every signature itself.
Which algorithm should I sign with?
ECDSA P-256 with SHA-256 (algorithm 13) is the most common choice today and gives small signatures. RSA/SHA-256 (algorithm 8) with 2048-bit keys is also widely supported. Publish SHA-256 (digest type 2) DS records.
Sources and further reading
- RFC 4033: DNS Security Introduction and Requirements
- RFC 4034: Resource Records for the DNS Security Extensions: DNSKEY, RRSIG, DS and NSEC formats, key tags and canonical form
- RFC 4035: Protocol Modifications for the DNS Security Extensions: how resolvers authenticate the chain
- RFC 6840: Clarifications and Implementation Notes for DNSSEC
- RFC 8624: Algorithm Implementation Requirements and Usage Guidance for DNSSEC
- IANA: DNS Security Algorithm Numbers
- IANA: Root zone trust anchor files
- RFC 7344: Automating DNSSEC Delegation Trust Maintenance: CDS and CDNSKEY
- RFC 5011: Automated Updates of DNS Security (DNSSEC) Trust Anchors