Insights

Thinking Internal DNS Is Too Basic to Fail? Map the Services That Depend on It

November 27, 2026
0:00
Internal DNS rarely comes up in architecture reviews. It runs on a couple of small VMs, it has worked for years, and nobody thinks about it until a database hostname stops resolving. By then you find out that the database clients, the identity provider, the monitoring pipeline, and often the tools you would use to fix DNS all depend on those same resolvers. This teardown walks through the usual shape of that outage and shows how to map the dependencies before an incident maps them for you. The phases below are a composite of a common failure pattern, not a record of one specific event. The pattern matches the circular-dependency failure described in the research behind this piece: critical services such as databases, identity providers, and telemetry pipelines rely on the same DNS infrastructure they are trying to query.
The trigger is almost always ordinary. Common examples are an automated config update, a deployment to the authoritative server, or a race condition between two changes that leaves internal records half-written or points a service-discovery name at nothing. The mechanics of that last one are covered in this walkthrough of race conditions in authoritative DNS config. The first symptoms look nothing like a DNS outage, and caching is the reason. Clients that already hold a cached answer keep working until its TTL (time to live, the number of seconds a resolver may reuse an answer) runs out. Then they fail one at a time. Some runtimes cache lookups for a long time or for the life of the process. Others resolve on every new connection. The result is a slow, uneven spread of failures: one service times out connecting to the database, another rejects logins, a third works fine because it was restarted last week and never looked up the name again. On a support desk this arrives as tickets saying the site is slow, logins are broken, or the admin panel hangs. The single most useful first check is whether the name resolves from the affected server through the system resolver. Checking from your laptop proves nothing, because your laptop may use a different resolver.
The on-call engineer opens the dashboards and finds them empty or frozen. Telemetry agents usually ship metrics and logs to a collector addressed by hostname. When that name stops resolving, data stops arriving at the moment you need it most. Alerting misfires too: either everything pages at once, or nothing does because the alert pipeline itself is starved. Next, the engineer tries to log in to a bastion host or the control panel. Single sign-on fails because the identity provider cannot reach its own directory or database by name. If SSH is configured with UseDNS enabled, each login also waits on a reverse lookup that times out, so even working logins feel broken. Meanwhile each team sees its own service failing and suspects its own latest change. Several rollbacks happen in parallel, which adds noise. DNS itself often looks healthy at a glance. The resolver process is running, port 53 answers, and a health check that queries a cached or hardcoded name passes. Nothing says the records are wrong.
The turning point comes when someone identifies the bad zone change and tries to revert it. That is where the circular dependencies show up:
  • 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.
At this point the outage is no longer about one bad record. It is about getting a working path to the servers that hold that record. The public-DNS version of the same trap, where a domain's nameservers live inside the domain they serve, is covered in the article on glue records and circular delegation. Internal DNS has fewer guardrails against it, because no registry or parent zone forces you to supply glue.
The goal of mitigation is to restore a path for the people fixing the problem. Full service can come back after that. First, use out-of-band access: the hypervisor console (Proxmox, VMware, or similar), IPMI, or your cloud provider's serial console, with a local account that does not depend on SSO. If no such account exists, that gap goes straight into the postmortem. Second, on a small set of hosts, add /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;
};
Serve-stale has a limit. It helps when the authoritative server is unreachable or failing. It does not help when the authority returns a wrong but valid answer, because the resolver has no reason to distrust that answer. Then revert the zone change, using IP addresses wherever names fail.
The fix starts with an inventory. For each critical host you want to know which resolvers it uses, whether its key names resolve through the normal system path, and which internal hostnames its configs reference. These commands are read-only. Replace 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
The grep only covers what lives under /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.
ServiceDepends on DNS forBreaks when DNS breaks?Recovery path without DNS
Internal resolversConfig management, admin SSOAdmin access and config pushesLocal account via hypervisor console
Identity providerDirectory and database hostnamesAll SSO loginsBreak-glass local accounts on key hosts
Database clientsPrimary and replica namesApp connections after TTL expiryDocumented IPs, hosts entries
Telemetry pipelineCollector hostnameDashboards and alertsExternal probe outside the environment
Git and CIRepo and runner namesRollbacks and deploysRepo mirror or clone reachable by IP
Any row where the recovery path is empty, or depends on DNS too, is a circular dependency.
Start by defining a short tier-zero list: the services that must be recoverable when everything else is down. Internal DNS belongs on it, along with whatever you need to log in to and change DNS. Tier-zero services should have no runtime dependency on anything above them. In practice the resolvers get local admin accounts, their config is deployed by IP or baked into the image, and their upstream forwarders are configured by IP. Next, make zone changes harder to break. Validate before reloading, for example with 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.

Join My Newsletter & Get Updates!

Get notified whenever a new technical guide, server infrastructure breakdown, or personal reflection goes live, plus a curated weekly digest.