How the outage usually starts
Why the investigation takes so long
The discovery: the recovery tools depend on the thing that broke
- Admin access to the DNS servers goes through LDAP or SSO, which needs DNS.
- The deployment pipeline pulls the zone repository from a Git server addressed by name.
- The config management agent on the resolver cannot reach its server.
- In container setups, a rescheduled resolver pod cannot pull its image because the registry hostname does not resolve.
- The secrets vault that holds the credentials for all of the above is also reached by name.
Temporary mitigation that actually works
/etc/hosts entries for the minimum names needed to recover: the Git server, the DNS servers themselves, the database primary, and the identity provider. This only helps if the host consults files before DNS, which you can confirm in /etc/nsswitch.conf. Track every entry you add and remove it afterwards. A forgotten hosts entry pointing at an old IP causes its own outage months later.
Third, if your caching resolvers still hold the last good answers, serve-stale can buy time. Serve-stale, defined in RFC 8767, lets a resolver keep answering with expired data when it cannot get a fresh answer from the authority. The syntax depends on the resolver and its version:
TEXT
# Unbound (unbound.conf)
server:
serve-expired: yes
# BIND (named.conf)
options {
stale-answer-enable yes;
};Mapping what fails when internal resolution breaks
internal.example with your internal domain.
BASH
# Which resolvers does this host use?
cat /etc/resolv.conf
resolvectl status 2>/dev/null | grep -i 'dns server'
# Does a critical name resolve through NSS, the way applications see it?
getent ahosts db01.internal.example
# Which internal hostnames do service configs depend on?
grep -rhoE '[a-z0-9.-]+\.internal\.example' /etc 2>/dev/null | sort | uniq -c | sort -rn/etc. Application configs, environment files, and container definitions need the same search wherever they live. Put the findings into a simple map. The column that matters most is the last one: how you reach or recover the service when DNS is down.
| Service | Depends on DNS for | Breaks when DNS breaks? | Recovery path without DNS |
|---|---|---|---|
| Internal resolvers | Config management, admin SSO | Admin access and config pushes | Local account via hypervisor console |
| Identity provider | Directory and database hostnames | All SSO logins | Break-glass local accounts on key hosts |
| Database clients | Primary and replica names | App connections after TTL expiry | Documented IPs, hosts entries |
| Telemetry pipeline | Collector hostname | Dashboards and alerts | External probe outside the environment |
| Git and CI | Repo and runner names | Rollbacks and deploys | Repo mirror or clone reachable by IP |
The architectural fix
named-checkzone on BIND. Roll changes to one server before the others. Keep the previous zone version ready for a one-step revert. Internal DNS deserves the same change discipline as a database. As this piece on building internal DNS puts it, once an environment scales, internal DNS has to behave like a core infrastructure platform instead of a simple phone book. Many teams start with hosts files, Pi-hole, or a basic BIND or CoreDNS setup, as this r/sysadmin discussion shows, and that is fine until other services quietly come to depend on it.
Monitor DNS from outside the environment it serves. A probe that queries a known record through each resolver and compares the answer with the expected value catches wrong answers, not just dead processes. Finally, test the map. In staging, block outbound port 53 on one host and watch what breaks. Do this only on a non-production host you can reach through a console, because you may lose your SSH session.
The practical takeaway: write down how you would log in to your DNS servers, fix a record, and confirm the fix with every internal name unresolvable. If any step needs a hostname, you have found your next outage. Fix that path while things are calm, using local accounts, documented IPs, and external monitoring.