Recursive vs authoritative
Your laptop talks to a recursive resolver (ISP, Google, Cloudflare, or internal AD DNS). Authoritative servers for a zone only answer when the query reaches them along delegations. dig +trace walks delegations manually so you spot lame delegations or wrong NS glue.
Everyday commands
| Scenario | Command | Signal |
|---|---|---|
| Which resolver answers | dig example.com | SERVER line in output footer |
| Delegation faults | dig +trace example.com | SERVFAIL at a specific hop |
| UDP path broken | dig +tcp @resolver example.com | Works over TCP only |
| DNSSEC validation | delv example.com | insecure vs bogus vs ok |
Stub resolvers
On systemd systems resolvectl query host shows how stub 127.0.0.53 forwards. On Windows ipconfig /displaydns reveals negative caching—flush only after you fix the authoritative side.
Related: nslookup and dig, how DNS works, what does nslookup do, diagnosing slow internet.