---
title: "SERVFAIL from a validating resolver: is DNSSEC broken? | Proofline"
description: "A validating resolver returns SERVFAIL when a zone's DNSSEC chain does not verify, even though the authoritative servers answer normally."
url: https://proofline.sh/learn/dnssec-validation-servfail/
---

[Learning center](/learn/)

# SERVFAIL from a validating resolver: is DNSSEC broken?

A validating resolver returns SERVFAIL when a zone's DNSSEC chain does not verify, even though the authoritative servers answer normally. Repeat the query with the checking-disabled bit: if the answer comes back with +cd and not without it, validation failed. If it still fails, the resolver cannot reach the authority at all, and DNSSEC is not the first suspect.

Network outages The Proofline team November 23, 2026 5 min read

## Two causes behind one SERVFAIL

SERVFAIL says only that the resolver could not process the query. For a signed zone, the two common causes are:

-   Validation failure. The resolver got an answer, but the signatures did not verify: an expired RRSIG, a DS record at the parent that matches no DNSKEY in the zone after a key rollover, or missing signatures. RFC 4035 calls such data bogus, and a validating resolver must return RCODE 2 for it to clients that did not set the CD bit. [RFC 4035 resolver behavior](https://www.rfc-editor.org/rfc/rfc4035)
-   No reachable authority. The resolver could not get an answer from any authoritative server: they are down, unreachable from the resolver, or responding with errors.

Both break every client of that resolver at once, and in both cases the record looks fine from a tool that skips validation or reaches the authority by another path. [NXDOMAIN, SERVFAIL or no answer](/learn/dns-nxdomain-servfail-timeout/)

## What the CD bit does

The CD (checking disabled) bit lets a client ask a security-aware resolver not to validate. RFC 4035 requires the resolver to return the full response for data that failed validation if and only if the query had CD set. So a query with CD set returns the bogus data, while the same query without it returns SERVFAIL. `dig +cd` sets the bit. [RFC 4035 CD bit](https://www.rfc-editor.org/rfc/rfc4035) · [dig manual](https://bind9.readthedocs.io/en/latest/manpages.html)

`dig +dnssec` sets the DNSSEC OK bit, which asks for the RRSIG records with the answer, and a validating resolver sets the AD flag on answers it validated. `delv` goes further: it fetches the DNSKEY and DS records needed to build the chain of trust and validates the answer itself, using the root trust anchor, and `+vtrace` shows the validator's reasoning. [delv manual](https://bind9.readthedocs.io/en/latest/manpages.html)

## Separate validation from reachability

Run from a host that uses the failing resolver:

```
dig @RESOLVER_IP NAME A
dig @RESOLVER_IP NAME A +cd
dig @RESOLVER_IP NAME A +dnssec
```

Then read the zone's own data from its authoritative server and the DS record from the parent zone's server. RRSIG records carry signature expiration and inception times, so an expired signature is visible in the output. [RFC 4034 RRSIG fields](https://www.rfc-editor.org/rfc/rfc4034)

```
dig ZONE NS +short
dig @AUTHORITATIVE_NS NAME A +norecurse +dnssec
dig @AUTHORITATIVE_NS ZONE DNSKEY +norecurse +dnssec

dig PARENT_ZONE NS +short
dig @PARENT_NS ZONE DS +norecurse

delv @RESOLVER_IP NAME A +vtrace
```

Resolvers that support Extended DNS Errors (RFC 8914) attach an info code that names the reason, such as 6 (DNSSEC Bogus), 7 (Signature Expired), 9 (DNSKEY Missing), 10 (RRSIGs Missing) or 22 (No Reachable Authority). [RFC 8914](https://www.rfc-editor.org/rfc/rfc8914)

## Read the result

| Without `+cd` | With `+cd` | Authority, `+norecurse` | Points to |
| --- | --- | --- | --- |
| SERVFAIL | Answer | Answer | Validation failure; read RRSIG times, DNSKEY and DS |
| SERVFAIL | SERVFAIL | Answer | The resolver cannot reach the authority |
| SERVFAIL | SERVFAIL | No reply | The authoritative servers are down or blocked |
| Answer | Answer | Answer | Not DNSSEC; the failure is elsewhere or intermittent |

For validation failures, compare the key tags. The DS record at the parent names a key tag and algorithm. If no DNSKEY in the zone has that tag, the chain is broken at the delegation, which typically follows a key change in which the parent was not updated, or a move to a new DNS provider with different keys. If the DNSKEY matches but the RRSIG expiration is in the past, the zone's signing stopped.

## A worked example

This example is illustrative. From 07:00 UTC, the `orders` service's calls to `api.partner.example` fail with lookup errors. The office network resolves the name, and the partner says nothing changed.

| Query | Result |
| --- | --- |
| Service's resolver, A | SERVFAIL |
| Same, `+cd` | NOERROR, 198.51.100.20 |
| Partner authority, A, `+dnssec` | 198.51.100.20 with RRSIG, expiration 20261123060000 |
| `delv`, `+vtrace` | validation fails: signature expired |

The resolver can reach the authority, and the answer comes back once validation is off. The RRSIG expired at 06:00 UTC, and resolvers dropped the cached valid answer as its TTL ran out over the next hour. The office resolver does not validate, which is why it kept working. The partner's zone signing needs repair, which only the partner can do; send them the dig and delv output.

In a second incident, `+cd` also returns SERVFAIL, and dig to the partner's name servers from a host on the same network gets no reply. The partner's DNS is unreachable. DNSSEC is not involved, and the next step is the network path to those servers or the partner's DNS provider.

## Limits

Not every resolver honors the CD bit. The Route 53 VPC Resolver ignores both the DO and CD bits: when DNSSEC validation is enabled for the VPC it validates, but it does not return DNSSEC records or set the AD bit, so `+cd` and `+dnssec` against it tell you nothing. Check whether validation is enabled with `aws route53resolver get-resolver-dnssec-config --resource-id VPC_ID` (`ValidationStatus`), then validate with `delv` against a resolver path you control. [Route 53 DNSSEC validation](https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/resolver-dnssec-validation.html) · [get-resolver-dnssec-config](https://docs.aws.amazon.com/cli/latest/reference/route53resolver/get-resolver-dnssec-config.html)

When the VPC Resolver forwards to another resolver through a rule, that resolver does the recursion and must do the validation too, so its behavior is the one to test.

`delv` uses its own trust anchor and resolution logic. A disagreement between `delv` and the resolver can come from the resolver's own trust anchors or validation settings. Large DNSSEC responses can also exceed the UDP size and need TCP, which fails separately. [Truncated DNS responses](/learn/dns-truncated-response-tcp-blocked/) For the method across dependency layers, see [runtime dependency failures](/learn/runtime-dependency-failures/).

## Questions

### Why does the name resolve from my laptop but SERVFAIL in production?

Your laptop's resolver probably does not validate DNSSEC, or it has a cached answer from before the break. A validating resolver rejects data whose signatures do not verify. Compare the two with `dig +cd` against the production resolver.

### What does dig +cd do?

It sets the CD (checking disabled) bit, asking the resolver to return data even if validation fails. A security-aware resolver must honor it. If the answer appears only with `+cd`, the failure is DNSSEC validation.

### Should I turn off DNSSEC validation to fix it?

That is a change to how every lookup in the network is checked, and it removes protection against forged answers. Find which zone is broken first; often its owner can fix the signatures or the DS record quickly.

## One month of free code review.

New organizations get one calendar month of hosted code review for private and public GitHub repositories. No card or cloud connection required. [Eligibility and fair-use terms](/free-code-review/).

[Start free with GitHub](https://proofline.sh/orgs/plan?offer=free_month)

## Related reading

-   ### [DNS lookup failed: NXDOMAIN, SERVFAIL, NODATA or no answer?](/learn/dns-nxdomain-servfail-timeout/)
    
    Network outages The Proofline team November 23, 2026 6 min read
    
-   ### [Only large DNS answers fail: truncation and blocked TCP port 53](/learn/dns-truncated-response-tcp-blocked/)
    
    Network outages The Proofline team November 23, 2026 6 min read
