Fix DNSSEC SERVFAIL: Broken Chain of Trust After a DNS Host or Registrar Change

Why a domain returns SERVFAIL on validating resolvers after a DNS provider or registrar move, how to confirm a stale DS record with dig +cd, and how to fix it by updating or removing the DS record.

Home › Guides › DNSSEC SERVFAIL (broken chain)

Last updated 17 November 2026

Quick answer

If your domain suddenly returns SERVFAIL from validating resolvers such as 1.1.1.1 but resolves fine with validation turned off (dig +cd), DNSSEC is broken. The usual cause, per Cloudflare's troubleshooting docs, is that the authoritative DNS provider was changed without updating or removing the old DS record at the registrar. The parent zone (for example .com) still points at a key the new DNS host doesn't publish, so validators can't build a chain of trust and treat your answers as bogus.

Fix it at the registrar, one of two ways:

  1. Keep DNSSEC: turn on DNSSEC at the new DNS host and replace the DS record at the registrar with the one the new host gives you.
  2. Turn DNSSEC off for now: delete the DS record at the registrar. The domain becomes insecure (unsigned), which resolves normally, and you can sign it again later.

Either way, resolvers can keep the old DS cached until its TTL runs out. Run the DNSSEC Checker to see the DS, DNSKEY and key tags side by side.

Step 1: Confirm it is DNSSEC

Cloudflare's documented test compares a normal query with one that has checking disabled:

dig A example.com @1.0.0.1
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL

dig A example.com @1.0.0.1 +dnssec +cd +short
203.0.113.10

If the +cd query returns records but the normal one returns SERVFAIL, DNSSEC is misconfigured. Cloudflare notes this often happens when name servers change but DS records don't, and that it can also happen when an attacker tries to forge a response.

Then compare the parent's DS with the zone's keys:

dig +short DS example.com
dig +short DNSKEY example.com

The first number in a DS record is the key tag of the DNSKEY it points to. If no DNSKEY has that key tag and algorithm, the chain is broken. dig doesn't print key tags for DNSKEY records in +short output; the DNSSEC Checker calculates them for you (RFC 4034 Appendix B) and also recomputes the DS digest. Microsoft gives the same check for the 4.7.324 error: review the child domain's RRSIG key IDs and make sure they match the key IDs in the DS records in the parent zone.

Read the resolver's Extended DNS Error

Resolvers that support RFC 8914 attach an Extended DNS Error (EDE) code to the SERVFAIL. Cloudflare returns it in the Comment field of its JSON DNS-over-HTTPS answers, and the DNSSEC Checker shows it. The DNSSEC-related codes are:

EDENameRFC 8914 meaningUsual fix
1Unsupported DNSKEY AlgorithmA DNSKEY RRset contained only unsupported DNSSEC algorithms.Re-sign with a recommended algorithm such as 13 or 8.
2Unsupported DS Digest TypeA DS RRset contained only unsupported digest types.Publish a SHA-256 (type 2) DS.
6DNSSEC BogusValidation ended in the Bogus state.Check DS vs DNSKEY and the signatures.
7Signature ExpiredNo signatures are presently valid and some (often all) are expired.The DNS host must re-sign the zone.
8Signature Not Yet ValidNo signatures are presently valid and at least some are not yet valid.Check the signing server's clock.
9DNSKEY MissingA DS record existed at a parent, but no supported matching DNSKEY record could be found for the child.Update or remove the DS at the registrar (the stale DS case).
10RRSIGs MissingNo RRSIGs could be found for at least one RRset where RRSIGs were expected.Make sure every name server serves the signed zone.
11No Zone Key Bit SetNo Zone Key Bit was set in a DNSKEY.Publish keys with flags 256 or 257.
12NSEC MissingThe requested data was missing and a covering NSEC or NSEC3 was not provided.Check the signer's NSEC/NSEC3 settings.

RFC 4035 defines the states behind these codes. Bogus means the resolver expected to build a chain of trust and couldn't, because signatures failed or DNSSEC records said data should exist and it didn't. Insecure means there is no chain to build (no DS), which is not an error.

Common causes

Step 2: Fix the DS at the registrar

If the new DNS host supports DNSSEC, enable it there, copy the DS values it shows (key tag, algorithm, digest type, digest) and replace the old DS at the registrar. Cloudflare notes that if a registrar doesn't list algorithm 13, it may be called ECDSA Curve P-256 with SHA-256, and that Cloudflare Registrar (and .ch and .cz domains) get the DS added automatically.

If you just need the site and mail back, delete the DS record at the registrar. The zone becomes insecure and resolves normally once the cached DS expires.

After the change, check with dig DS example.com and the DNSSEC Checker until the result is SIGNED + VALIDATING or UNSIGNED, not BROKEN.

How to move DNS hosts without breaking DNSSEC next time

Cloudflare documents this order for moving a signed zone when the old provider can't do multi-signer DNSSEC. It leaves a short window without DNSSEC protection:

  1. Remove the DS record at the registrar.
  2. Wait for the DS TTL to expire at the parent. Verify with dig DS example.com; Cloudflare says this is commonly 24 to 48 hours for most TLDs.
  3. Change the name servers to the new host.
  4. Wait for the previous NS TTL to expire (typically one hour or less).
  5. Enable DNSSEC at the new host and add its DS record at the registrar.

RFC 6781 section 4.3.5 covers the same choice. If the old and new operators cooperate, the move can be done with a pre-published ZSK and a double-signature KSK rollover, so the zone stays signed. If they don't, the only viable option is to let the zone go insecure: remove the DS, move the NS, and add the new DS once the new zone is signed. RFC 8901 describes multi-signer models, which Cloudflare supports when the old provider can publish external DNSKEY records.

Turning DNSSEC off safely

When the error shows up in Exchange Online

Exchange Online validates DNSSEC and DANE on outbound mail by default. Microsoft documents 4/5.7.324 dnssec-invalid: Destination domain returned invalid DNSSEC records, and notes that today a domain that signals DNSSEC support but fails the checks usually gets the generic 4/5.4.312 DNS query failed instead. If partners on Microsoft 365 report either code for mail to your domain, check your DNSSEC first. See DNSSEC and SMTP DANE in Exchange Online.

Related tools and guides

Check DS, DNSKEY, key tags and the AD flag with the DNSSEC Checker, look up NS and SOA records with DNS Lookup and compare resolvers with the DNS Propagation Checker. Once the domain resolves again, confirm mail routing with the MX Record Lookup and Email Deliverability Checker, and read any bounce in the Email Header Analyzer. Related guides: DNSSEC and SMTP DANE in Exchange Online, Exchange Online 4.4.7 message expired and MTA-STS and TLS-RPT setup.

FAQ

Why does my domain work on some networks but SERVFAIL on others?

Only validating resolvers check DNSSEC. Resolvers that validate (Cloudflare 1.1.1.1 is one) return SERVFAIL when the chain of trust is bogus, while resolvers that do not validate still return the records. That is why a broken DS can look like an outage for some users only.

Does removing the DS record make my domain less secure?

It makes the zone insecure in DNSSEC terms: resolvers stop validating it, the same as any unsigned domain. That is far better than a broken chain, which makes validating resolvers refuse to answer at all. You can enable DNSSEC again at your DNS host and add a fresh DS record afterwards.

How long until the fix takes effect?

Until resolvers drop the cached DS record, which depends on the DS TTL set by the parent zone. Cloudflare says waiting for the DS TTL to expire is commonly 24 to 48 hours for most TLDs. Resolvers that never cached the old DS see the change straight away.

Can I keep DNSSEC on while moving to a new DNS host?

Yes, if both providers support it: with cooperating operators (RFC 6781 section 4.3.5.1) or a multi-signer setup (RFC 8901), the new host's keys are published before the switch, so the zone stays signed. If the old provider cannot add the new keys, remove the DS first and accept a short insecure window.

What does EDE 9 DNSKEY Missing mean?

RFC 8914 defines it as: a DS record existed at a parent, but no supported matching DNSKEY record could be found for the child. In practice the DS at your registrar points at a key your current DNS host does not publish. Replace or remove the DS.

Want the full kit?

Runbooks, checklists and helpdesk templates: IT Admin Packs on Gumroad.