What the message looks like
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 41234Common causes
- The DS record at the registry no longer matches the zone's DNSKEY after a provider change.
- Expired RRSIG signatures because automatic re-signing stopped.
- Lame delegation: listed nameservers are not authoritative for the zone or unreachable.
- Nameservers answer incorrectly or block TCP/EDNS (large responses).
Check
- Query with DNSSEC data
- Same query with checking disabled – if it works, DNSSEC is the problem
dig example.com A +cd - Query the DS record at the parent zone
dig +short DS example.com @a.gtld-servers.net - Query DNSKEY directly at the authoritative server
dig +short DNSKEY example.com @ns1.example-dns.com - Show the validation chain with a reason
delv example.com A
Fix
- Delete the wrong DS record at the registrar or replace it with the matching one; mind the DS TTL.
- When moving a DNSSEC-signed domain, remove the DS first, wait out the TTL, then move and re-sign.
- Check and fix automatic re-signing at the DNS provider or in BIND/PowerDNS.
- Align NS records at the registry and in the zone.
- Flush resolver caches after the fix, e.g.
unbound-control flush_zone example.com.
Typical scenario
After switching DNS providers, example.com is unreachable for some users while others see the site. On 8.8.8.8 dig returns SERVFAIL, while the provider's router still answers. The pattern fits DNSSEC validation: the registrar still holds the DS record of the old provider, but the new one signs differently or not at all. Run the same query again with dig +cd to confirm.
FAQ
Why does it work for some users but not others?
Only validating resolvers (e.g. 1.1.1.1, 8.8.8.8, many ISPs) return SERVFAIL. Non-validating resolvers still hand out the answer.
How long after the fix until it works?
As long as the TTL of the DS record or of cached negative answers – often one to 24 hours.
Why do different resolvers give different results?
Validating resolvers, such as the large public services, drop answers that fail DNSSEC and return SERVFAIL. Non-validating resolvers, like many routers, return the answer anyway. That is why the problem seems to affect only some users.
How does SERVFAIL differ from NXDOMAIN?
NXDOMAIN is a valid answer: the name does not exist. SERVFAIL means the resolver received no usable answer at all, for example because of a broken name server, a lame delegation or a failed DNSSEC check.
Does SERVFAIL clear up on its own once I fix the error?
Not immediately. Resolvers cache failures briefly, and changed DS records at the parent need their TTL. dig +trace shows whether the fault is fixed at the source; spreading the fix then takes some time.