Lesson 9 of 9 · 25m
Monitoring DNS Incidents and Debugging at Scale
Build DNS observability around authoritative health, resolver paths, validation, propagation, and user-visible symptoms.
The worst DNS incidents are the ones your own monitoring cannot reproduce because it queries from the wrong place. Inside the office everything resolves, the status page says healthy, and customers in another region are getting SERVFAIL from a validating resolver. DNS observability has to model the distributed system DNS actually is.
Monitor four different truths
You need separate signals for authoritative correctness, public recursive visibility, validation health, and application outcome:
authoritative: every NS answers the same zone data
recursive: major resolver families return expected answers
validation: signed zones validate; RRSIG expiry is far away
application: TLS, HTTP, mail, or service checks succeed using DNSA green application check alone can hide DNS degradation because retries, cached connections, or monitoring agents pinned to one resolver path mask the problem.
Small probes beat dashboard theater
A lightweight shell probe can collect evidence from resolver diversity:
for server in 1.1.1.1 8.8.8.8 9.9.9.9; do
printf '%s ' "$server"
dig @"$server" www.sudosecurity.org A +time=2 +tries=1 +noall +comments +answer | awk '/status:/{status=$6}/ A /{print status, $NF}'
doneStore status, answer, TTL, and response time. Alerting only on timeout misses wrong answers. Alerting only on exact IP misses intentional multivalue responses. Match expectations to design.
Build an incident ladder
When users report resolution failure, move in a fixed order:
1. reproduce from the reporting path if possible
2. query the user-visible resolver and capture status/flags
3. query authoritative servers directly with +norecurse
4. compare validating and checking-disabled responses
5. trace delegation when answers disagree
6. inspect recent zone, registrar, DNSSEC, and network changesThis ladder prevents the common failure mode of editing the zone because the most senior person cannot reproduce the issue locally.
Do not forget transport and edge networks
Authoritative servers need UDP and TCP on port 53. Encrypted recursive services need TCP 853 or HTTPS paths. Firewalls, rate limiters, and DNS “protective” appliances often drop large UDP packets, fragmentation, EDNS options, or TCP fallback. If small TXT queries work and large DNSKEY responses fail, transport is a prime suspect.
Incident review needs DNS-specific artifacts
Keep zone exports, registrar change history, DS/DNSKEY state, resolver outputs with timestamps, provider incident IDs, and serial numbers. DNS postmortems are impossible when the only artifact is a Slack message saying “looks fine now.” Cache expiry erases crime scenes.
Field notes
- Monitor from multiple networks and resolver operators; one cloud region is not the Internet.
- Alert on RRSIG expiration days before failure, not after validating resolvers start returning
SERVFAIL. - Negative answers are cached too, so a missing record can remain broken after creation until the negative TTL expires.
- During incident response, use
+time=2 +tries=1and preserve full output; speed matters, but evidence matters more.
Was this lesson helpful?