Use this when DNS security controls cause failures or miss attacks.
DNS Security Troubleshooting
Troubleshoot DNS security by checking DNSSEC validation with dig +dnssec and delv, SERVFAIL caused by bad signatures or expired keys, RPZ or filter hits in resolver logs, and whether clients bypass the resolver with DoH.
1. SERVFAIL with DNSSEC: broken signatures/expired DS.
2. Unexpected blocks: filtering false positives.
3. Bypass: clients using DoH/other resolvers.
4. Poisoning suspicion: compare answers, flush caches.
5. Check logs.
client → resolver → policy/validation → answer
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
dig +dnssec <name> <type>Primary Commands
Configuration and operational commands for this Topic.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Troubleshooting order Narrow the fault
1. Is the client using the expected resolver? (ipconfig /all, resolvectl status)
2. Does the resolver answer? (dig @resolver name)
3. SERVFAIL: DNSSEC problem? Compare dig +cd (checking disabled) — if that works, validation fails (delv shows why).
4. Blocked by filtering/RPZ? Check resolver logs.
5. Wrong answer: compare with the authoritative server (dig @ns1.example.com name) and other resolvers.
Step 2 Common symptoms Narrow the fault
| Symptom | Likely cause |
|---|---|
| SERVFAIL only on validating resolvers | DNSSEC chain broken (DS/DNSKEY mismatch, expired RRSIG) |
| NXDOMAIN for existing names | RPZ/filter block or wrong zone |
| Works by IP, not name | Resolver or search domain |
| Slow lookups | Unreachable forwarders, EDNS/fragment problems |
| Different answers per site | Split DNS or caching |
Step 3 Common mistakes Narrow the fault
- Testing with a resolver that bypasses RPZ/DNSSEC.
- DNSSEC errors appear as SERVFAIL.
- RPZ hits can block legitimate sites.
- DoH clients can bypass internal resolvers.
dig +trace <domain>— resolution pathdelv <domain>— DNSSEC validation detail- Resolver logs/filter logs — blocks and failures
ReferenceHow it works1 section · depth on demand
In depth
DNS security troubleshooting covers failures caused by security controls — DNSSEC validation errors, filtering blocks, encrypted DNS bypass — and investigation of suspicious DNS activity.
| Symptom | Check |
|---|---|
| SERVFAIL for one domain | DNSSEC: dig +cd (checking disabled) works? → validation failure; check with delv or DNSViz |
| Site blocked unexpectedly | Protective DNS/RPZ logs, category of the domain |
| Clients bypass internal DNS | Browser DoH settings, outbound 53/853 allowed? |
| Suspicious queries | Long random subdomains, rare domains, NXDOMAIN bursts |
dig example.com +dnssec
dig example.com +cd
delv @10.0.0.53 example.com
Disable browser DoH via enterprise policy or the canary domain use-application-dns.net so internal resolvers and filtering remain effective.
ReferenceConfiguration & state1 section · depth on demand
Useful commands
dig +trace example.com
dig +dnssec example.com @resolver
dig +cd example.com # checking disabled: SERVFAIL disappears? → DNSSEC problem
rndc querylog on # BIND query logging
Resolve-DnsName example.com -Server 10.0.0.53
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in DNS Security → DNS Security Troubleshooting. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc4033 · confidence 94%