Pcornel
Windows · DNS Server

DNS Server Troubleshooting

Cheat sheet · https://pcornel.dk/topic.php?topic=3300

Back to the Topic

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 server
  • Get-DnsServerResourceRecord -ZoneName <zone> -Name <name> — records
  • Resolve-DnsName <name> -Server <dns> — query the server
  • Get-DnsServerForwarder — forwarders
  • dcdiag /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

BoundaryMeaningEvidence limit
TimeoutTransport/service/path issue candidateNot proof server down
NXDOMAINResponder says name does not exist in its resolution contextCan be wrong authority/cache
SERVFAILResolver could not complete processingRequires upstream/validation detail
Correct server answerServer-side path worksClient/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

Confirmation

Confirm action

Continue?