Join our Newsletter — 33% off our NHI Course
Home› Guides› DNSSEC Validation Failures: Diagnosing SERVFAIL, Expired Signatures and…
Guide Network Security

DNSSEC Validation Failures: Diagnosing SERVFAIL, Expired Signatures and Broken Chains

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 27 November 2026 14 min read
On this page

When DNSSEC validation fails, a domain does not degrade gracefully: every validating resolver returns SERVFAIL and users see a site that has simply vanished. The cause is almost never an attack. It is usually a signer that stopped re-signing, a DS record left at the registrar after a provider move, a key removed too early in a rollover, or a clock that has drifted. This guide is a working method for isolating which of those you have, using standard tools such as dig and delv, resolver logs and Extended DNS Error codes, and for deciding what to fix first. It is written for DNS administrators and network engineers who run authoritative zones, recursive resolvers or both. For signing design, algorithm choice and planned rollovers, see the DNSSEC Deployment Guide.

Key takeaways

  • Prove it is DNSSEC first: repeat the failing query with the CD (checking disabled) bit set; if the answer comes back with CD and SERVFAIL without it, validation is the cause.
  • Read the Extended DNS Error: RFC 8914 codes such as 7 Signature Expired, 9 DNSKEY Missing and 6 DNSSEC Bogus usually point straight at the broken link, but treat them as diagnostic hints only.
  • Walk the chain from the top: check the DS at the parent, then the DNSKEY set, then the RRSIGs on the failing record, on every authoritative server, not just one.
  • Remember caches: a DS record can stay in resolver caches for its full TTL after you remove it, so a hasty rollback can make an outage worse.
  • Use negative trust anchors sparingly: RFC 7646 allows a temporary, manual, per-domain bypass on your own resolvers, with a lifetime that should not exceed a week, and only once you are sure it is a misconfiguration.

How validation fails

A validating resolver tries to build a chain of signed DNSKEY and DS records from a trust anchor (normally the root key) down to the record it was asked for. RFC 4035 Section 4.3 defines four outcomes:

StateMeaning (RFC 4035)What the client sees
SecureA signed chain from the trust anchor to the RRset exists and validatesAnswer with the AD bit set
InsecureThe resolver knows there is no chain, for example an unsigned delegation (no DS at the parent)Answer without AD
BogusA chain should exist but cannot be built: signatures fail or required DNSSEC data is missingSERVFAIL (RCODE 2) unless the query set CD
IndeterminateThe resolver cannot obtain the records it needs to decideUsually SERVFAIL

Insecure is a safe state; Bogus is an outage. The key operational fact sits in RFC 4035 Section 5.5: when no RRSIG validates, a recursive server must return SERVFAIL to the client, and returns the data only if the query had CD set. That is what makes the CD bit the single most useful troubleshooting switch.

SymptomLikely causeFirst check
Whole domain SERVFAIL on validating resolvers, fine with CD setExpired RRSIGs, or DS at parent matches no DNSKEYRRSIG expiration on SOA and DNSKEY; DS versus DNSKEY key tags
Failure started right after a DNS provider or registrar changeOld DS left at the parent while the new provider signs with new keysCompare DS at the parent with the new provider's DNSKEY set
Failure started hours or days after a key rolloverOld key removed before caches expired, or DS swapped too earlyRollover timeline against DS and DNSKEY TTLs
Only some users or some resolvers failOne authoritative server serving a stale or unsigned copy; anycast node out of syncQuery each authoritative address directly and compare SOA serial and RRSIGs
Only some names fail, or only some record typesPartial signing, broken NSEC or NSEC3 denial proofs, wildcard edge casesQuery the failing name and type with +dnssec at each server; inspect NSEC records
Every signed domain fails on one resolverResolver clock wrong, stale root trust anchor, or a middlebox stripping DNSSEC recordsResolver time, trust anchor key tags, test with a known good signed domain
Failure persists after you "fixed" itCached bogus result or cached DS (EDE 13 Cached Error)Flush the resolver cache for the name; wait out DS TTL on public resolvers

Diagnosing SERVFAIL

SERVFAIL also comes from unreachable servers, lame delegations and timeouts. Separate them before touching keys.

  1. Confirm the symptom from a validating resolver: dig example.com A against your own validating resolver. Note the status and any EDE line in the OPT pseudosection.
  2. Repeat with checking disabled: dig +cd example.com A. In BIND's dig, +cd (synonym +cdflag) sets the CD bit, asking the server not to validate. If you now get NOERROR with data, the failure is validation. If you still get SERVFAIL, look at reachability and delegation instead.
  3. Ask for the DNSSEC records: dig +dnssec +multiline example.com SOA. +dnssec (synonym +do) sets the DO bit so RRSIG, NSEC and DS records are returned; +multiline prints RRSIG and DNSKEY fields with readable comments, including key tags.
  4. Query the authoritative servers directly: dig @ns1.example.net +dnssec +norecurse example.com SOA for every NS, IPv4 and IPv6. Compare serials and RRSIG expiration times. A single stale secondary is enough to cause intermittent failures.
  5. Let a validator explain itself: delv example.com A uses the same resolver and validator code as named and reports why validation failed. +vtrace logs the validator's decisions and +rtrace logs each query it sends for DS and DNSKEY lookups.
  6. Trace the delegation: dig +trace example.com follows referrals from the root with DNSSEC records enabled.

On the resolver side, turn on validation logging before you need it. In Unbound, val-log-level: 1 logs one line per failing query and level 2 adds the reason and the server that sent the bad data. Do not switch a production resolver to permissive mode (Unbound's val-permissive-mode) to rescue one domain: it removes protection for all of them.

Extended DNS Error codes

RFC 8914 (Standards Track, October 2020) lets a resolver attach an info code to a response. Resolvers that implement it return codes such as these alongside SERVFAIL:

EDENameWhere to look
1Unsupported DNSKEY AlgorithmZone signed only with an algorithm the resolver does not support; treated as insecure rather than bogus
2Unsupported DS Digest TypeDS set holds only digests the resolver does not support
5DNSSEC IndeterminateResolver could not fetch DS or DNSKEY: check reachability of parent and child servers
6DNSSEC BogusGeneric failure: signatures do not verify against the keys; use delv to get the detail
7Signature ExpiredSigner or hidden primary stopped re-signing; secondaries serving an old copy
8Signature Not Yet ValidInception time in the future: clock on signer or resolver
9DNSKEY MissingParent has a DS but the child has no matching DNSKEY: registrar change or early KSK removal
10RRSIGs MissingAn RRset that should be signed is not: partial signing or unsigned copy on one server
12NSEC MissingNegative answer without a covering NSEC or NSEC3 proof
13Cached ErrorSERVFAIL returned from cache: flush before retesting

RFC 8914 is explicit that EDE does not change RCODE processing, that EXTRA-TEXT is for humans rather than parsers, and that EDE is unauthenticated, so it must be treated only as diagnostic information. The NSEC3 iteration code is covered in the DNSSEC Deployment Guide.

Expired or missing signatures

Every RRSIG carries an inception and an expiration time. RFC 4035 Section 5.3.1 requires the validator's current time to be greater than or equal to the inception and less than or equal to the expiration. Outside that window the signature is unusable, and if no other signature covers the RRset the answer is Bogus.

  • Read the window: in dig +dnssec +multiline output the RRSIG shows expiration then inception as YYYYMMDDHHMMSS timestamps in UTC. Check the SOA, the DNSKEY RRset and the failing record. If the DNSKEY RRset signature has expired, every name in the zone fails.
  • Find the dead signer: expired signatures almost always mean signing stopped: a hidden primary down, a signer that lost access to its keys or HSM, or a broken zone transfer leaving secondaries on an old copy.
  • Check clocks for EDE 8: signatures that are not yet valid point to a signer clock running fast or a resolver clock running slow. Unbound allows skew of 10% of the signature lifetime, bounded by val-sig-skew-min (default one hour) and val-sig-skew-max (default 24 hours), so short-lived signatures leave little room. Fix NTP before anything else.
  • Missing RRSIGs (EDE 10): usually one server serving an unsigned version of the zone, for example a secondary still transferring from the unsigned primary rather than the signer, or a record added outside the signing pipeline.

Once repaired, re-sign, bump the serial and confirm every secondary has it. Then alert on signature headroom well inside the re-signing interval.

Broken chain of trust and DS mismatches

The DS record at the parent is a hash of a key-signing key in the child zone. If no DNSKEY in the child matches any DS at the parent, the chain breaks and resolvers return EDE 9 DNSKEY Missing or 6 Bogus.

DS mismatch after a registrar or provider change

This is the most common self-inflicted DNSSEC outage. A zone moves to a new DNS provider, the new provider signs with its own fresh keys, and the old DS record stays at the registrar. Every validating resolver now sees a DS that points to a key that no longer exists.

  1. Compare key tags: dig +norecurse @<parent server> example.com DS gives the key tag, algorithm and digest type. dig +multiline example.com DNSKEY shows each key's tag in the comments; the KSK has flags 257. The DS key tag and algorithm must match a published KSK (or CSK).
  2. Verify the digest, not just the tag: key tags can collide. Generate the DS from the live DNSKEY (for example with BIND's dnssec-dsfromkey) and compare the digest with what the parent publishes.
  3. Fix in the right direction: if the new keys are correct, submit the new DS at the registrar and remove the old one. If you cannot get the right DS quickly, remove the DS to make the zone Insecure, accepting that recovery takes up to the DS TTL.
  4. Next time, migrate deliberately: either go insecure before the move and re-secure after, or use a multi-signer transition so the old and new keys overlap. The DNSSEC Deployment Guide covers both, plus CDS and CDNSKEY automation.

A DS change you did not make is a different problem: treat it as a possible registrar account takeover and follow the DNS Hijack Playbook. Registrar logins and DNS API tokens are credentials that control your whole chain of trust; see the Authoritative DNS and Registrar Account Security Guide.

Cached DS: why rollback hurts

Slack's account of its September 2021 DNSSEC rollout is the clearest public lesson. After publishing the DS for slack.com and seeing errors, the team removed the DS and then unsigned the zone. Resolvers still held the cached DS, so they began returning SERVFAIL: the .com zone tells resolvers to cache DS records for up to 24 hours, and zone owners cannot change that. Recovery needed resolver operators to flush caches. The rule: never unsign a zone while a DS for it may still be cached. Remove the DS, wait at least the parent's DS TTL, then stop signing.

Algorithm and key rollover problems

RFC 7583 states the goal of rollover timing as never letting any part of the zone go bogus. Failures happen when a step runs before caches have caught up. The three intervals to check against your change log are the publication interval (Ipub: how long before resolvers holding the old DNSKEY set have the new one), the retire interval (Iret: how long a retired key must stay published so data that depends on it leaves caches) and the registration delay (Dreg: how long a DS submitted to the parent takes to appear).

What went wrongTypical evidenceRemedy
ZSK removed while its RRSIGs are still cachedEDE 6 or 9 for some resolvers for up to the RRSIG TTLRepublish the old ZSK until Iret has passed
Old KSK removed before the old DS expired from caches (Double-KSK)EDE 9 DNSKEY Missing; old DS key tag still seenRepublish the old KSK; wait the parent propagation delay plus the DS TTL
New DS published before the new KSK reached caches (Double-DS)Failures after the DS change, before key switchKeep both DS records; switch the KSK only after the DS change has propagated
Algorithm rollover with the new algorithm not signing every RRsetBogus on some validators after the new DS is publishedSign all RRsets with both algorithms before publishing the new DS
Stale root trust anchor on a resolver or applianceEvery signed domain fails on that resolver onlyUpdate the trust anchor; enable RFC 5011 tracking where supported

When an automated signer (BIND dnssec-policy, Knot, PowerDNS or a managed provider) drives rollovers, check its key state output against the parent DS before blaming timing: most automated KSK rollovers stall waiting for a DS that nobody submitted.

Tools and checks

Tools are listed by function and are not recommendations.

ToolUse in troubleshooting
dig (BIND)+cd, +dnssec, +multiline, +norecurse, +trace; reads EDE in the OPT pseudosection
delv (BIND)Validates like named and explains failures; +vtrace, +rtrace, -a for an alternate trust anchor file
Resolver logsUnbound val-log-level 1 or 2; BIND dnssec category logging
Chain visualisersWeb tools that graph the DS and DNSKEY chain from the root and flag errors per server
Negative trust anchorRFC 7646 temporary per-domain bypass on your own resolvers (for example BIND rndc nta); not a fix for the zone

When to use a negative trust anchor

If a domain your users depend on is broken by someone else's misconfiguration, RFC 7646 (Informational) allows a negative trust anchor on your own resolvers. Its guidance: use must not be automatic, the lifetime should not exceed a week, it must expire automatically, it should cover only the affected domain, and the resolver should keep checking whether the domain validates again. First rule out an attack, contact the domain owner and confirm the domain still belongs to them.

Detection and measurement

  • Signature headroom: minimum time to RRSIG expiry, per zone and per authoritative server.
  • DS to DNSKEY consistency: every DS at the parent matches a published KSK; alert on any change at the parent.
  • Validation failure rate: SERVFAIL caused by validation on your resolvers, broken down by EDE code and domain.
  • Serial agreement: all authoritative servers on the same SOA serial within your transfer target.

Framework mapping

FrameworkReferenceRelevance
NIST SP 800-53 Rev. 5SC-20Secure name/address resolution (authoritative): signing and serving valid signatures
NIST SP 800-53 Rev. 5SC-21Secure name/address resolution (recursive or caching resolver): validation
NIST SP 800-53 Rev. 5CM-3, SI-4Change control for DS and key changes; monitoring signature and DS health

Common failure patterns

  • Testing from one resolver: Slack found that one major public resolver cached a faulty negative answer while another did not reproduce it. Test across several validating resolvers.
  • Unsigning while the DS is cached: the rollback that turns a partial outage into a total one.
  • Disabling validation globally: permissive mode or validation off on corporate resolvers to fix one external domain, then left in place.
  • Silent signer failure: no alert until signatures expire days later, at which point every name fails at once.

Practitioner checklist

  • Confirm a validation failure with dig +cd before changing anything.
  • Record the EDE code, then verify it against the actual DS, DNSKEY and RRSIG records.
  • Query every authoritative server directly over IPv4 and IPv6 and compare serials and signatures.
  • Match DS key tag, algorithm and digest at the parent to a published KSK.
  • Check RRSIG inception and expiration on SOA, DNSKEY and the failing record, and check NTP on signer and resolver.
  • Never unsign a zone until the DS has been removed and the parent DS TTL has passed.
  • Use a negative trust anchor only for third-party domains, manually, for under a week, after ruling out an attack.
  • Turn on resolver validation logging and alert on signature headroom and DS changes.

Standards and references

Related NHI Mgmt Group resources: DNSSEC Deployment Guide · DNS Security Guide · DNS Hijack Playbook · NIST SP 800-81 Rev. 3 Secure DNS Deployment Guide

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.