DNS Server Troubleshooting
Cheat sheet · https://pcornel.dk/topic.php?topic=3300
Answer
DNS Server troubleshooting checks, in order, that the DNS service is running and listening, that the zone exists and holds the right records, that forwarders or recursion work for external names, and that AD replication and clients are using the right server.
Remember
- Start with the exact FQDN, record type and expected authoritative source.
- Query the intended server explicitly before testing the client default path.
- Separate authoritative failure from recursive/forwarding failure.
- Treat stale replicas and stale client/server cache as distinct boundaries.
First checks
Get-DnsServerZone— zones on the serverGet-DnsServerResourceRecord -ZoneName <zone> -Name <name>— recordsResolve-DnsName <name> -Server <dns>— query the serverGet-DnsServerForwarder— forwardersdcdiag /test:dns /v— DC DNS health
Commands
Get-DnsServerZone- Read current DNS Server state for a bounded verification step.
Get-DnsServerForwarder- Read-only observation for configured forwarders and recursion-facing settings.
Get-DnsServerResourceRecord -ZoneName <zone>- Read-only observation for authoritative resource records for the selected zone.
Verify in this order
query → zone or recursion → answer
Where it usually breaks
First mismatch in host/interface identity → local config/routing/name state → Windows service/provider → firewall/security/session → remote service → application-visible exchange; preserve identity/native error/pre-state before mutation.
DNS Server → DNS Server Troubleshooting reference map
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Timeout | Transport/service/path issue candidate | Not proof server down |
| NXDOMAIN | Responder says name does not exist in its resolution context | Can be wrong authority/cache |
| SERVFAIL | Resolver could not complete processing | Requires upstream/validation detail |
| Correct server answer | Server-side path works | Client/app can still fail |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3300