"It's always DNS" is a joke among network admins, and it is funny because name lookups sit underneath almost every connection, so a DNS fault shows up as an unrelated-looking failure. To check whether DNS is your problem, reach a host by IP address and then by name: if the address works and the name does not, it is DNS.
The phrase is not a law. Plenty of outages are a dead link, a stopped service or a bad certificate. But DNS is a frequent enough culprit, and a hard enough one to spot, that a quick lookup test belongs at the start of any connectivity investigation.
Why DNS gets blamed so often
Almost every program connects to a name, not an address. Before a browser, an API client or a database driver can send a single packet, something has to turn example.com into an IP address. That step is invisible when it works, and it happens first, so when it fails the failure looks like whatever the program does next.
Three properties make DNS faults confusing:
- The error message points elsewhere. Applications usually report "connection refused", "timeout" or "host unreachable" instead of "the name could not be resolved". You end up testing the server and the firewall while the real fault is one step earlier.
- Answers are cached in many places. Your browser, your operating system, your router and your provider's resolver can each hold a copy. After you change something, different machines see different results for a while.
- The failure can be partial. One resolver works and another does not, or one device works and another on the same network fails. That inconsistency looks like a flaky network, not a configuration fault.
A real example: the AWS DynamoDB outage of October 2025
Amazon's own post-event summary is a good illustration of how a DNS fault can spread. AWS describes the root cause of the DynamoDB disruption in US-EAST-1 as "a latent race condition in the DynamoDB DNS management system". In the summary's account, a delayed component applied an old DNS plan to the regional endpoint, overwriting a newer one, and a cleanup process then deleted the old plan. AWS says that as the plan was deleted, "all IP addresses for the regional endpoint were immediately removed".
The effect, as AWS reports it, was that customers could not resolve the service's address, saw increased API error rates and could not establish new connections. DynamoDB impact ran from 11:48 PM PDT on October 19 to 2:40 AM PDT on October 20, about 2 hours 52 minutes. AWS says DNS information was restored by 2:25 AM, and the cached records expired by 2:40 AM. Other services that depend on DynamoDB took far longer: the summary puts the full event at roughly 14.5 hours, ending at 2:20 PM PDT.
Two lessons carry over to your own network. A name with no addresses behind it looks exactly like a server that is down. And even after the record is fixed, cached answers keep the outage alive for a while longer.
The 60-second test: is it DNS?
Work from the bottom up. First confirm the connection itself with an IP address, which needs no lookup:
ping 1.1.1.1
Replies mean the link to the internet works. Some networks block ping, so a failure here is a hint, not proof; trying a second address helps. Next, try a name:
ping example.com
The IP address works but the name fails: DNS. Both work: the problem is further up, in the application or the specific server. Neither works: fix the connection first, because no DNS setting repairs a dead link.
To see what the lookup actually returns, use nslookup, which exists on Windows, macOS and most Linux systems. Microsoft's reference says that in noninteractive mode the first parameter is the name to look up and the second is the DNS server to use, and that omitting the second makes it use the default server:
nslookup example.com
nslookup example.com 1.1.1.1
The first command asks the DNS server your computer is configured to use. The second asks Cloudflare's public resolver instead. If the first fails and the second works, your configured resolver is at fault, which on a home network is often the router. On macOS and Linux, dig example.com and dig @1.1.1.1 example.com do the same job. The tools are covered in the nslookup and dig guide.
What the nslookup error means
Microsoft documents the error messages nslookup prints. Read the message before changing anything, because each one points at a different place:
| Message | Meaning (from Microsoft's documentation) | Where to look |
|---|---|---|
timed out | The server did not respond after a certain time and number of retries. | The path to the server, or the server itself |
No response from server | No DNS name server is running on the server computer. | A wrong server address |
Nonexistent domain | The computer or DNS domain name does not exist. | Spelling, an expired domain, a missing record |
Server failure | The name server found an internal inconsistency in its database and could not return a valid answer. | The resolver, or the domain's own DNS hosting |
Refused | The name server refused to service the request. | A server that does not serve your network |
For a step-by-step fix for each of these, see the DNS resolution troubleshooting guide. If your symptom is specifically a timeout, fixing "DNS server not responding" is the more direct page.
Why a fixed record still looks broken
The most common reason people say "it's always DNS" is the delay after a change. Every DNS answer carries a time to live (TTL), and caches keep the answer until it runs out. Until then, a machine that already has the old answer keeps using it.
Failures are cached too. RFC 2308 says a negative answer that resulted from a name error (NXDOMAIN) should be cached, and it defines the TTL of that negative answer as coming from the SOA record's minimum field. The RFC suggests values of one to three hours as having been found to work well, though the actual figure is whatever the domain's operator configured. In practice: if you looked up a name before creating its record, a resolver may keep telling you it does not exist for some time after you add it.
Check from several places before concluding anything:
- Query a public resolver with
nslookup example.com 1.1.1.1and compare it with your default. A difference means a cache somewhere holds an older answer. - Flush your own computer's cache. The commands for each system are in how to flush the DNS cache; on Windows it is
ipconfig /flushdns. - Test from a second device, or from a phone on mobile data, to separate your machine from your network.
Flushing your computer only clears your computer. It does nothing to your router's cache or your provider's resolver, which is why the same name can work on one device and fail on another.
Other things people mistake for DNS
The joke runs both ways: sometimes it is not DNS, and the lookup test proves it. If nslookup returns the right address and the connection still fails, look at these instead:
- The server itself. The name resolves to an address, but nothing answers there. Try the address directly.
- A firewall or proxy. The lookup works but the connection to the port is blocked.
- IPv4 versus IPv6. A name can have both address types, and a broken IPv6 route can stall a connection that would work over IPv4. Microsoft's nslookup reference shows
-type=AAAAfor IPv6 records and-type=A+AAAAto fetch both, which lets you see what the name actually points to. - A stale hosts file entry. A line in the local hosts file overrides DNS for one name, so
nslookupasks the server and gets a different answer from what your applications use.
That last one is worth remembering. If nslookup gives a correct address but the browser goes somewhere else, the system's own resolution path differs from the one nslookup asks, and the cache or the hosts file is the first place to look.
How it works underneath
If you want to understand why one lookup can involve so many servers, how DNS works walks through the chain from your computer to the root servers and back. The short version: more machines take part in a lookup than in the connection it enables, and each one can cache, fail or return a different answer. That is the whole reason the joke keeps getting told.
If it still fails
Write down three facts: what nslookup example.com returns, what nslookup example.com 1.1.1.1 returns, and whether the IP address answers directly. Those three results sort nearly every case. If the name fails everywhere with "Nonexistent domain", the name or its record is the problem. If only your default server fails, change the resolver or restart the router. If the lookups work and the connection does not, DNS is cleared and the investigation moves to the server, the port or the firewall.
Frequently asked questions
- Is it really always DNS?
- No. It is a joke about how often DNS turns out to be the cause, not a rule. Many failures are a dead connection, a down server, a firewall rule or an expired certificate. A name lookup test takes seconds and tells you whether DNS is involved, so run it before assuming either way.
- Where does the phrase "it's always DNS" come from?
- It is network and sysadmin humour, usually told as a haiku, and no single origin is documented in the primary sources used here. It spread because DNS failures look like something else: an application reports a generic connection error, and the missing name lookup is only found late.
- How can I tell whether a problem is DNS or the network?
- Reach a server by IP address, then by name. If the IP address works and the name fails, the connection is fine and name resolution is the fault. If both fail, the problem is the connection or the server, not DNS.
- Why does DNS take so long to fix after I correct a record?
- Resolvers and operating systems keep answers in a cache for the record's time to live. Negative answers such as NXDOMAIN are cached too, for a time taken from the zone's SOA record, so a fix can stay invisible until those cached copies expire.