🔧 Troubleshooting DNS: start with dig
order: client -> resolver -> forwarder -> authority / first differing reading = where to look next, not proof of the cause
Asks the one lookup every walkthrough in this section starts from.
dig @1.1.1.1 example.isitdns.net AGO NOERROR, one A record, and a Query time in milliseconds
NO GO SERVFAIL or a timeout, which is where the walkthroughs begin
Step 1: rule out interception#
Interception answers in the server's place. Test for it first. Ask a server
that cannot exist. 192.0.2.99 is from the block RFC 5737
reserves for documentation, so no real nameserver lives there:
dig @192.0.2.99 isitdns.net SOA +time=3 +tries=1A timeout and no servers could be reached is correct: nothing lives at
that address, so nothing answers. Any actual answer means something on your
network is grabbing every DNS query you send and answering it itself, no
matter who you addressed it to. Test from somewhere that does not intercept
(a phone on cellular, a cloud box) or use an encrypted transport such as
DoT or DoH, which interception on port 53 cannot touch.
Which page you want#
| What you are asking | Page |
|---|---|
| Is this DNS at all, or is the service itself down? | Is it actually DNS? |
Why is this name returning SERVFAIL, and who is failing? | What does SERVFAIL mean? |
Why does dig say connection timed out, and which leg is silent? | Why does dig say connection timed out? |
| Is my answer rewritten, and does my query reach the authority? | test-your-own-path |
| Is the resolver I point at working and telling the truth? | check-a-resolver |
| Is my forward zone actually forwarding, and to the right place? | check-a-forwarder |
| Is the authoritative server answering correctly for its own zone? | check-an-auth |
| Do the parent and the child agree on who is in charge? | check-a-delegation |
| Is DNSSEC validation the thing breaking this? | Is it DNSSEC? |
See also#
- dig-phonebook: the wiki's main dig and nslookup commands, sorted by what you want to see
- dig-flags: what each
+flagactually changes - anatomy-of-a-query: what happens between you and the answer