Use this topic for systematic Windows server-side DNS failures instead of changing zones, forwarders and caches simultaneously.
DNS Server Troubleshooting
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.
1. Exact FQDN and record type; query the server explicitly.
2. Authoritative? zone and record.
3. Forwarding/recursion for external names.
4. Cache: Clear-DnsServerCache.
5. DNS server events and debug logging briefly.
query → zone or recursion → answer
Investigate the first failed boundary only, then retest end-to-end.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
It does not show root cause until the dependency at that boundary is independently verified.
Next check: Investigate the first failing step only, then retest end-to-end.
Operational reference
Fast context before you go deeper.
Get-DnsServerZonePrimary Commands
Configuration and operational commands for this Topic.
Get-DnsServerZoneVerifyRead current DNS Server state for a bounded verification step.
Use when: Use after confirming the DNS Server target and before changing state.
Quick note: Windows / Windows Server / PowerShell. A running Windows service or successful cmdlet does not prove effective policy, replication, authorization or remote consumer success.
Windows / Windows Server / PowerShell · mixedGet-DnsServerForwarderVerifyRead-only observation for configured forwarders and recursion-facing settings.
Use when: Use when troubleshooting the linked operational Windows boundary.
Quick note: Command ownership closure. Output remains live/runtime evidence and is never pre-populated as captured production state.
Windows / PowerShell · control planeGet-DnsServerResourceRecord -ZoneName <zone>ReferenceRead-only observation for authoritative resource records for the selected zone.
Use when: Use when troubleshooting the linked operational Windows boundary.
Quick note: Command ownership closure. Output remains live/runtime evidence and is never pre-populated as captured production state.
Windows / PowerShell · configurationVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
symptom → exact query → selected DNS server → zone/cache/forwarder/root path → response → client cache → app
Step 2 Known-good, broken and when it is fixed Verify boundary
Known-good means the intended Windows DNS server loads the correct zone, returns the expected record/RCODE/authoritative flag for direct queries, and recursive/forwarded queries follow the intended path. For AD-integrated zones, verify the record on another relevant DC/DNS server after replication. Then repeat resolution from the original client after cache considerations. Broken evidence is zone load failure, wrong/missing record, stale replicated data or forwarder/recursion failure. The limit of what it shows: a successful direct server query does not show every client is using that server or has cleared stale cache.
Step 3 Native failure isolation and next-check logic Narrow the fault
For a failed name, query the intended DNS server directly and separate authoritative-zone failure from recursive/forwarding failure. If authoritative data is wrong or absent, inspect zone loading, record ownership, dynamic update/scavenging and AD replication rather than changing client settings. If internal zones work but external resolution fails, inspect forwarder/root-hint reachability and recursion policy. For SERVFAIL, use server event/debug evidence and delegation/chain checks; for NXDOMAIN, show whether the server is authoritative for that namespace. Flush caches only after preserving the stale/incorrect answer and determining which cache owns it.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- 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.
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
ReferenceHow it works1 section · depth on demand
How it works
Windows DNS Server answer behavior is determined by zone ownership/type, authoritative records, AD replication for AD-integrated zones, dynamic-update policy, delegation, conditional forwarding/forwarders/root hints, recursion settings and cache state. A server can answer one zone correctly while forwarding external names incorrectly. Client resolver caches and DNS suffix search can make a server-side fix appear ineffective. Record queried FQDN/type, client/server used, whether answer is authoritative, zone type and the exact response code before flushing caches or recreating zones.
ReferenceImportant terms & boundaries3 sections · depth on demand
What the evidence shows
Successful ping to a DNS server ≠ DNS service health; successful DNS query ≠ application health.
Change one boundary at a time and preserve before/after evidence.
In depth
Ask the server directly, bypassing the client cache
PS C:\> Resolve-DnsName www.example.org -Server dns01 -DnsOnly
PS C:\> Resolve-DnsName app.corp.example.com -Server dns01 -DnsOnly -NoRecursion
PS C:\> Get-DnsServerForwarder -ComputerName dns01
PS C:\> Test-DnsServer -IPAddress 1.1.1.1 -ComputerName dns01 # can dns01 reach the forwarder?
Microsoft's DNS server troubleshooting guidance points to unreachable forwarders or root hints as a cause of query timeouts, recommends checking and removing unreachable forwarders and conditional forwarders, and notes that clearing the server cache can temporarily restore resolution.
Symptom → cause
| Symptom | Cause | Check |
|---|---|---|
| External names slow or failing | Dead forwarder, or forwarders + root hints both blocked by firewall | Get-DnsServerForwarder, UDP/TCP 53 outbound |
| Internal names fail for some clients | Zone not on this server / replication scope | Get-DnsServerZone, AD replication |
| Stale records | Scavenging disabled or no-refresh/refresh too long | Get-DnsServerScavenging, zone aging |
| Records not registered | Secure updates only, client cannot authenticate; DHCP registration credentials | Zone dynamic update setting, DHCP DNS credentials |
| Wrong answer after change | Cache on server or clients | Clear-DnsServerCache, then client cache |
| SERVFAIL for a DNSSEC-signed zone | Validation failure | Disable validation temporarily for diagnosis only; fix trust anchors/signatures |
Logging
Set-DnsServerDiagnostics -ComputerName dns01 -Queries $true -Answers $true -SendPackets $true -ReceivePackets $true -EnableLogFileRollover $true -LogFilePath C:\DNSLogs\dns.log -MaxMBFileSize 500
Debug logging is heavy; enable it briefly. For continuous visibility use the Microsoft-Windows-DNSServer/Analytical log (ETW), which has lower overhead.
Statistics
Get-DnsServerStatistics -ComputerName dns01 shows query counts, recursion failures and timeouts — a rising recursion timeout counter confirms forwarder or root-hint problems.
Domain controller DNS
DCs must register their SRV records: dcdiag /test:dns /v /s:dc01 and nltest /dsregdns on the DC re-registers them.
*The DNS queries and diagnostic logging commands are examples, not evidence of a recorded server response.*
Method
DNS Server troubleshooting on Windows checks zone health, forwarding/recursion, AD integration and client configuration.
Get-DnsServerZone | Select-Object ZoneName, ZoneType, IsDsIntegrated, IsSigned
Resolve-DnsName dc01.corp.example.com -Server dns01
Resolve-DnsName www.microsoft.com -Server dns01 # recursion/forwarders
Get-DnsServerForwarder
Clear-DnsServerCache
Get-DnsServerDiagnostics
Get-WinEvent -LogName 'DNS Server' -MaxEvents 20
| Symptom | Likely cause |
|---|---|
| Internal names fail | Zone missing on server, AD replication issue, wrong client DNS |
| External names fail | Forwarders unreachable, root hints, firewall to port 53 |
| Stale records | Scavenging not configured |
| DC records missing | Netlogon registration (nltest /dsregdns) |
Enable DNS analytical/debug logging only temporarily — it is very verbose.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in DNS Server → DNS Server Troubleshooting. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows-server/networking/dns/ · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
DNS Server → DNS Server Troubleshooting reference map
Fast lookup boundaries for DNS Server → DNS Server Troubleshooting.
| 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 |