Pcornel
Security · DNS Security

DNS Security Troubleshooting

Cheat sheet · https://pcornel.dk/topic.php?topic=4800

Back to the Topic

Answer

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.

Remember

  • DNSSEC errors appear as SERVFAIL.
  • RPZ hits can block legitimate sites.
  • DoH clients can bypass internal resolvers.

First checks

  • dig +trace <domain> — resolution path
  • delv <domain> — DNSSEC validation detail
  • Resolver logs/filter logs — blocks and failures

Commands

dig +dnssec <name> <type>
Query DNSSEC validation material. Focus fields: response code, answer, RRSIG/DNSKEY-related records, flags and authorit…
resolvectl status
dig @resolver name
dig +cd
dig @ns1.example.com name

Verify in this order

client → resolver → policy/validation → answer

Where it usually breaks

First mismatch in endpoint/identity → path/reachability → policy selection → enforcement/session → protected flow → telemetry/detection; preserve identity/policy/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4800

Confirmation

Confirm action

Continue?