Free ops runbook · DNS

SERVFAIL after a DNSSEC change: walk the chain before you turn it off

SERVFAIL is what a validating resolver returns when it cannot prove an answer. The authoritative servers can be answering correctly the whole time and the name can still fail for every resolver that validates. Turning DNSSEC off is the fastest way to make it worse.

This page is free. It shows how to separate a validation failure from an authoritative failure in one query, how to compare the parent's DS with the child's DNSKEY, and the order in which keys and DS records have to change.

Scope: reviewed from the DNSSEC RFCs and resolver documentation, no live reproduction
Verified against RFC 4033, RFC 4035, RFC 6781, RFC 7583 and RFC 8624, the ICANN DNSSEC material and the delv documentation, on 2026-12-03. Query output below is the expected shape, not a capture from a live zone. Test rollovers on a staging zone with short TTLs.
Read the state

Four facts before any change

The chain is end to end

The parent publishes a DS record, the child publishes a DNSKEY, and every answer is signed. A validating resolver needs all three to line up; one mismatch fails the whole zone, not one record.

SERVFAIL is not NXDOMAIN

NXDOMAIN means the name does not exist. SERVFAIL means the resolver could not complete validation. A validating resolver returns SERVFAIL rather than serving an unproven answer.

+cd is the discriminator

With checking disabled, the resolver returns the data it would otherwise reject. If +cd answers and the normal query does not, the failure is validation, not authority.

TTLs keep the failure alive

A wrong DS or an expired signature stays cached for its TTL after you fix the source. Plan the wait, and lower the TTL before the change window, not during it.

Detect

Walk the chain in order

Command or viewWhat it tells you
dig +dnssec acme.test AThe validating path. A SERVFAIL status here, with a working authoritative server, points at the chain.
dig +cd acme.test A @1.1.1.1Same query with checking disabled. An answer proves the data exists and validation is what fails; a timeout or refusal points somewhere else.
dig DS acme.test +noall +answer @<parent-ns>The delegation the parent publishes: key tag, algorithm, digest type and digest. This is what the resolver must match.
dig DNSKEY acme.test +noall +answer @<authoritative-ns>The keys the child actually serves. The DS key tag must match one of these DNSKEY records, with the same algorithm.
dig acme.test RRSIG +noall +answerSignature validity. Compare the expiration with the current time; an expired or not-yet-valid RRSIG explains a failure with no configuration change.
delv @1.1.1.1 acme.test AA validator that explains itself: it reports a fully validated answer or the reason the chain broke, which dig does not.
dig +trace +dnssec acme.testThe delegation path from the root down. It shows where the DS and the DNSKEY stop agreeing.
dnssec-verify -o acme.test zone.dbFor a self-hosted signed zone: checks the signatures offline before they reach a resolver.
Failure modes

Seven ways the chain breaks

#Failure modeWhat you seeWhat to do
1DS published before the child serves DNSKEYValidating resolvers return SERVFAIL while the authoritative server answers normally.Publish and confirm the DNSKEY first, wait for it to be visible, then add the DS. Never the other way round.
2DS removed before the child stops signing, or the reverseSome resolvers fail and some do not, depending on which DS they still have cached.Remove the DS at the parent first, wait out the DS TTL and the zone's maximum TTL, then disable signing.
3A KSK rollover at the wrong momentThe new key is served but the DS still points at the old one, or the old key is withdrawn while its DS is cached.Follow the double-signing timings: publish, wait, switch DS, wait, withdraw. Shorten TTLs before the window.
4Expired signaturesThe zone still answers directly, but RRSIG expiration is in the past and validators refuse it.Keep the signer running and alert on signature expiry well before it happens; re-sign from the source zone.
5An algorithm validators no longer acceptSome resolvers validate, others return SERVFAIL, after a key change to a deprecated algorithm.Check the current algorithm recommendations before a rollover, and keep a supported algorithm in the chain during the transition.
6Clock skew on the signerSignatures are valid on the signer and rejected elsewhere because inception is in the future or expiry already passed.Keep the signer on synchronised time and monitor the offset, not only the signature dates.
7Disabling DNSSEC at the child firstEvery validating resolver returns SERVFAIL until the parent DS is removed and every cached copy expires.Remove the DS first and wait; disabling signing is the last step, not the first response to an outage.
Recover

What to do in the first ten minutes

StepActionWhy
1Confirm with +cdYou need to know whether the data is there and validation is failing, or the authoritative side is down.
2Compare DS and DNSKEY key tagsThis is the most common break and the fastest to see. A tag that matches nothing is the whole incident.
3Check signature datesAn expired signature needs a signer fix, not a registry change.
4Restore the last known-good DSIf a rollover broke the chain, putting the previous DS back is faster than finishing the rollover under pressure.
5Only then consider removing the DSRemoving it turns validation off for the zone. It restores reachability and gives up the protection; record the decision.
6Wait out the TTLsResolvers that cached the broken state keep failing after the fix. Do not declare success from one query on one resolver.
Verify

Four drills on a staging zone

Break it on purpose

Publish a DS that matches no DNSKEY on a staging zone and confirm SERVFAIL with +dnssec and an answer with +cd.

Rollover with short TTLs

Run a KSK rollover end to end at 60-second TTLs and record how long each stage has to wait before the next one is safe.

Expire a signature

Stop the signer and watch the resolver behaviour change at expiry. Confirm the alert fires before users see SERVFAIL.

Two resolvers

Query a validating and a non-validating resolver after each stage. A change that only one of them accepts is a partial outage, not a success.

FAQ

Questions from the DNS channel

Can we just turn DNSSEC off to restore the site?

Removing the DS at the parent does restore reachability, but only after caches expire. Disabling signing at the child while the DS is still published makes the outage worse. If you remove the DS, record it as a deliberate loss of protection and schedule the re-enable.

Why do only some users see the failure?

They use different resolvers, with different caches and different validation behaviour. Test at least two validating resolvers and one non-validating one before concluding the fix worked.

Does a CDN or managed DNS provider handle this for us?

It signs the zone and shows you the DS to publish, but the DS lives at the registrar and the rollover order is still yours. The provider cannot fix a DS that the parent does not have.

How often should we rehearse a rollover?

Before every key rollover, on a staging zone, with the same TTLs you will use in production. The failure is almost always a timing mistake, and timing is what the rehearsal measures.

Sources

Primary sources

DNS changes are change windows too

The paid runbooks cover the same discipline for other dated changes: a default that flips, a certificate that shortens, and a rollback that must be proven first.

This page is free, no checkout. Paid runbooks are $9.99 each and covered by the 7-day refund policy at /runbooks/refund.