“Something seems to be wrong with DNS.”
Reports of failures usually begin with this one line. But “something is wrong with DNS” could mean the client’s cache, the company’s caching DNS, or a configuration mistake on the authoritative DNS. If you try things at random without deciding where to start, it only takes longer.
Through Part 10 we have covered how DNS works, how to run it, how to investigate it, how to protect it, and how to use it in the cloud. In Part 11 we use that knowledge to put together a procedure for isolating DNS failures, and sort out the common failure patterns and the commands to check them. At the end, you will also find a quick-reference table and takeaways for the whole series.
▶ This part is also available as a YouTube video (about 19 min) (it is also embedded at the end of this article).
- The isolation steps
- Common failure 1: A change doesn’t take effect
- Common failure 2: Only some users or locations can’t resolve it
- Common failure 3: SERVFAIL
- Common failure 4: Reverse lookups, and names that fail only on the internal network
- Causes and check commands at a glance
- Series wrap-up: key points of each part at a glance
- Three things to take away
- Summary
- Watch the video
- The DNS Fundamentals series (12 parts)
The isolation steps
The basic approach to isolating a DNS problem is to check in the order client → caching DNS → authoritative DNS → delegation, changing whom you ask one stage at a time.

| Stage | What to check | Example commands | What it tells you |
|---|---|---|---|
| 0 Pin down the symptom | Who, from where, which name, since when, the exact error message | — | Whether it affects everyone or only some, and whether it is a name resolution problem at all |
| 1 Client | Which DNS it uses, hosts, search domains, the client’s cache, VPN and DoH | resolvectl status, ipconfig /all, getent ahosts name | Whether the problem is limited to that client |
| 2 Caching DNS | Ask it for the same name directly. Response code, EDE, remaining TTL | dig @caching-DNS name, Resolve-DnsName name -Server caching-DNS | What is in the cache, and why a SERVFAIL occurred |
| 3 Authoritative DNS | Ask every NS without recursion and compare. SOA serial | dig @NS name +norec, Resolve-DnsName name -NoRecursion -Server NS | Whether the configuration itself is right, and differences between NSs |
| 4 Delegation | Follow NS and DS from the parent down | dig +trace name (in PowerShell, query from the parent’s NS with -NoRecursion, step by step) | Breaks in delegation, lame delegation |
The key point is that the cause lies at the boundary between the stage where the answer is correct and the stage where it goes wrong. The further upstream the problem, the wider its impact: a client problem affects only that client, while an authoritative DNS problem affects everyone who looks up that name.
The first step, “pin down the symptom,” matters too. Whether “nobody can resolve it” or “only some people can” changes completely where you should look.
Also, dig does not go through hosts or nsswitch; it asks the DNS you specify directly (Part 8). When “dig resolves it but the application fails,” try the same path as the OS: getent ahosts on Linux, or Resolve-DnsName on Windows.
The approach of “pin down the symptom, change whom you ask at each stage, and look for the boundary between the correct stage and the wrong one” applies just as well to troubleshooting email and certificates.
Common failure 1: A change doesn’t take effect
This is the most frequent complaint. There are mainly four causes.

1. The TTL has not run out
A caching DNS server keeps returning the old answer until the TTL expires. If you ask the caching DNS directly, the remaining TTL in seconds tells you when it will expire.
$ dig @192.0.2.53 www.example.com A +noall +answer
www.example.com. 2873 IN A 198.51.100.10
PS> Resolve-DnsName www.example.com -Server 192.0.2.53 -DnsOnly # TTL column shows 2873
In this example, the answer will change to the new one in 2873 seconds (about 48 minutes).
2. Negative caching
If someone looks up a name before you create the record, NXDOMAIN is cached for the smaller of the SOA TTL and MINIMUM (RFC 2308, Part 3). This is the classic “I created it but it won’t resolve.”
3. Forgetting to increment the serial
With products where you edit a zone file, the zone is not transferred to the secondaries unless you increment the SOA serial (Part 7). Compare the SOA on each NS.
4. Editing the wrong place
If the registrar’s NS records point to a different DNS service, the zone you edited is not being used. Use dig +trace to confirm where the delegation really points. This one is surprisingly common.
When you are in a hurry, flush just that name from your own caching DNS.
- BIND:
rndc flushname name - Unbound:
unbound-control flush name - Windows:
Clear-DnsServerCache(the whole cache)
Keep in mind that caches on clients (ipconfig /flushdns, resolvectl flush-caches) and in applications (such as Java) may remain.
Common failure 2: Only some users or locations can’t resolve it
First, sort by “which caching DNS do the affected people use?” The internal DNS, a branch’s DNS, a VPN, and a home or smartphone connection each have a different cache state and a different path.

1. Mismatch between NSs
A secondary is not in sync, or one server still has old configuration. The answer changes depending on which NS you hit.
$ dig +nssearch example.com
SOA ns1.example.com. hostmaster.example.com. 2026092502 3600 900 1209600 3600 from server 192.0.2.53 in 3 ms.
SOA ns1.example.com. hostmaster.example.com. 2026092401 3600 900 1209600 3600 from server 198.51.100.53 in 12 ms.
In this example, it is obvious at a glance that only the server at 198.51.100.53 has an old serial. In PowerShell, use the script introduced in Part 8 that lists the SOA serial of every NS.
2. Lame delegation
Some of the NSs registered at the parent do not hold the zone (when asked with +norec, they return REFUSED or a response without aa). A leftover old NS after a DNS service migration is the typical case, and depending on which NS is hit, you get failures or delays.
3. Cache differences
Only the caching DNS servers that cache an old NS or an old answer fail. The telltale sign is that they recover one by one, starting from where the TTL has expired.
4. Path differences
Large responses (DNSSEC signatures, long TXT records) are dropped, fragments and all, by a firewall or VPN on a particular path. Compare with dig +bufsize=1232 and dig +tcp (-TcpOnly in PowerShell) (Part 4).
Common failure 3: SERVFAIL
SERVFAIL means “the caching DNS could not get an answer,” and the response code alone does not tell you why. Gather clues in the order EDE → +cd → +trace.

| EDE | Name | Common cause |
|---|---|---|
| 6 | DNSSEC Bogus | Signature validation failed |
| 7 | Signature Expired | The signature expired (re-signing stopped) |
| 9 | DNSKEY Missing | No key matches the parent’s DS (a failed key rollover or DNS service migration) |
| 15 / 18 | Blocked / Prohibited | Blocked by policy, or refused by access control |
| 22 | No Reachable Authority | None of the authoritative DNS servers can be reached |
| 23 | Network Error | An error while communicating with the authoritative DNS |
$ dig @1.1.1.1 dnssec-failed.org A
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 2359
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
; EDE: 9 (DNSKEY Missing): (no SEP matching the DS found for dnssec-failed.org.)
(This is an example using a public test domain for trying out validation failures.)
- An EDE is attached → go by its number to a family of causes (6 to 12 are DNSSEC, 15 to 18 are policy, 22 and 23 mean the authoritative DNS cannot be reached)
- Adding
+cd(no validation) gives NOERROR → a DNSSEC problem. Confirm with delv (Part 8) - Still can’t tell → use
dig +traceto find where it stops. An unresponsive authoritative DNS or a lame delegation
PowerShell cannot show the EDE, so use Resolve-DnsName -DnssecCd to check whether an answer comes back.
Common failure 4: Reverse lookups, and names that fail only on the internal network
| Symptom | Main cause | Check | Fix |
|---|---|---|---|
| SSH login is slow by several to tens of seconds | The server does a reverse lookup on the source and waits for a timeout (UseDNS yes, etc.) | dig -x source-IP, Resolve-DnsName source-IP | Register the PTR record. UseDNS defaults to no in OpenSSH 6.8 and later |
| Names do not appear, or do not match, in logs or allow-list settings | The PTR is missing, or forward and reverse lookups do not match | dig -x (Resolve-DnsName IP), then forward-look up the result | Register forward and reverse records so they match |
| Internal names fail only while on VPN | The VPN’s DNS settings, or a missing split-DNS setting | resolvectl status, Get-DnsClientNrptPolicy | Specify the internal domain and DNS in the settings the VPN distributes |
| Only certain internal domains fail | A conditional forwarder is not configured, or its target is down | dig @forwarding-target name, Resolve-DnsName name -Server forwarding-target | Use two or more forwarding targets and monitor them |
| Resolves from outside but not from inside | With split horizon, a record was never added to the internal zone | Compare the same name on the internal and external DNS | Include both zones in the procedure for adding records (Part 7) |
| Only the browser can’t resolve internal names | The browser’s DoH bypasses the internal DNS | The browser settings; compare with dig | Control DoH through corporate policy (Part 9) |

It helps to remember that slowness comes from waiting on a reverse lookup, and VPN problems depend on where queries are routed; this speeds up isolation.
As a side note, if you don’t create reverse zones for internal IP addresses (such as 10.0.0.0/8) on your internal DNS, queries leak to the internet, and things slow down by the time spent waiting for the answers (see Part 6 for how to write reverse zones).
Causes and check commands at a glance
Here is everything so far in one table. It is handy to keep nearby during an incident.
| Cause | Visible symptom | Check commands | Details |
|---|---|---|---|
| The TTL has not run out | The pre-change answer is returned | dig @caching-DNS name (remaining TTL), Resolve-DnsName -Server | Part 3 |
| Negative caching | NXDOMAIN even though the record was created | The SOA and TTL in the AUTHORITY section of dig (in PowerShell, the SOA whose Section column is Authority) | Part 3 |
| Secondary not in sync | The answer differs by NS | dig +nssearch zone, Resolve-DnsName zone -Type SOA -Server each-NS | Part 7 |
| Lame delegation | Sometimes slow or failing | dig +trace, dig @NS name +norec (is aa set?), -NoRecursion | Part 2 |
| DNSSEC validation failure | SERVFAIL, but succeeds with +cd | dig +cd, delv, EDE, Resolve-DnsName -DnssecCd | Part 9 |
| Large responses dropped | Only TXT or DNSKEY fails | dig +bufsize=1232, dig +tcp, Resolve-DnsName -TcpOnly | Part 4 |
| No reverse record | SSH is slow, logs show only the IP | dig -x IP-address, Resolve-DnsName IP-address | Part 6 |
| Forwarding or VPN misconfigured | Only internal names fail | resolvectl status, Get-DnsClientNrptPolicy, dig @forwarding-target | Parts 3 and 10 |
Series wrap-up: key points of each part at a glance
Let’s look back over the whole series. When you are in trouble, use this table to go back to the relevant part.
| Part | Theme | Key points | When you use it |
|---|---|---|---|
| Parts 1–2 | The big picture; hierarchy and delegation | The three key players, zones and delegation, internal names as subdomains of a domain you own | The start of a design (Part 12, Question 1) |
| Parts 3–4 | How name resolution works; messages | TTL and negative caching, forwarding, TCP is mandatory, EDNS at 1232 | Change work (Part 12, Question 2) |
| Parts 5–6 | Resource records | CNAME constraints, MX and SPF/DKIM/DMARC, CAA, HTTPS | Reviewing zones (Part 12, Question 5) |
| Part 7 | Running authoritative DNS | Serials and zone transfers, TTL change procedure, split horizon | Migrations, moving DNS services |
| Part 8 | Investigating with commands | Reading dig and Resolve-DnsName, @ / +norec / +trace, response patterns | Every investigation |
| Part 9 | Security | DNSSEC and SERVFAIL, takeover, encrypted DNS | Audits (Part 12, Question 5) |
| Part 10 | Cloud and corporate networks | VPC Resolver and endpoints, AD’s SRV records, ndots | Hybrid setups (Part 12, Question 3) |
| Part 11 | Troubleshooting | Client → caching DNS → authoritative DNS, EDE | Incident response (Part 12, Question 4) |
In every part, it is easier to understand things if you keep in mind “which DNS am I asking, and what?“
Three things to take away

1. Be aware of whom you are asking right now
Separate the stub resolver, caching DNS, and authoritative DNS, and check one stage at a time with dig @server (Resolve-DnsName -Server on Windows).
2. Plan DNS changes on the assumption of TTLs and caches
Lower the TTL beforehand, keep the old environment, and don’t forget negative caching and the serial.
3. Manage names as assets
Make internal names subdomains of a domain you own, and periodically take inventory of domain renewals, unused records, email authentication, and DNSSEC.
When in doubt, go back to “which DNS am I asking, and what?” As a first step, run dig +trace on your own PC and follow the delegation of a name you use every day.
References
- RFCs: 1034 and 1035 (basics), 2181 (clarifications), 2308 (negative caching), 6891 (EDNS), 7766 and 9210 (TCP), 4033 to 4035 (DNSSEC), 8914 (EDE), 9156 (QNAME minimization), 9460 (SVCB/HTTPS), 9499 (terminology). Japanese translations are available in JPRS’s “DNS-related technical information” (a Japanese-language resource)
- Official documentation: the BIND 9 Administrator Reference Manual (ISC), the Unbound documentation (NLnet Labs), Microsoft Learn (DNS in Windows Server, AD DS design), the Amazon Route 53 Developer Guide, the Azure DNS documentation, and Kubernetes’ “DNS for Services and Pods”
Summary
- Isolate in the order client → caching DNS → authoritative DNS → delegation. The cause lies at the boundary between the correct stage and the wrong one
- For “the change isn’t taking effect,” suspect these four: TTL, negative caching, serial, and where you edited
- For “only some users,” sort by which caching DNS the affected people use
- For SERVFAIL, gather clues in the order EDE → +cd → +trace
- Slowness points to reverse lookups; VPN problems point to where queries are routed
Next time is the final part. Using everything you have learned so far, you will work through five design exercises.
Watch the video
This part is also explained in a YouTube video (about 19 min).
All parts of the series are in the DNS Fundamentals playlist on YouTube.
The DNS Fundamentals series (12 parts)
All 12 parts with a reading guide: DNS Fundamentals
- What Is DNS? How Name Resolution Works and Its Three Key Players
- The domain name hierarchy and delegation
- How name resolution works
- DNS messages and transport
- Resource records, part 1
- Resource records, part 2
- Running authoritative DNS servers
- Investigating with commands
- DNS security
- DNS in the cloud and on corporate networks
- DNS troubleshooting (this article)
- DNS design exercises
This series is the English edition of 【DNS入門】, originally written in Japanese.


コメント