Pcornel
Browse topics
Options
Recent
Favorites
Windows · Technical reference

DNS Server Troubleshooting

Direct 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.

When to use this

Use this topic for systematic Windows server-side DNS failures instead of changing zones, forwarders and caches simultaneously.

First 30 seconds

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.

Operational verification

query → zone or recursion → answer

Evidence · next step

Investigate the first failed boundary only, then retest end-to-end.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common traps

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.

Platform / version applicability
Windows networking and network services
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformWindows networking and network services · Windows / Windows Server / PowerShell · Windows / PowerShell
Key commandGet-DnsServerZone
Scope / prerequisiteUse this topic for systematic Windows server-side DNS failures instead of changing zones, forwarders and caches simulta…
Verify · 2Reference · 1
What next?3 suggested next steps
Catalog command links3
Evidence1
On this pageJump to a specific section
Windows command reference

Primary Commands

Configuration and operational commands for this Topic.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

3 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • 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.
Key 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
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

SymptomCauseCheck
External names slow or failingDead forwarder, or forwarders + root hints both blocked by firewallGet-DnsServerForwarder, UDP/TCP 53 outbound
Internal names fail for some clientsZone not on this server / replication scopeGet-DnsServerZone, AD replication
Stale recordsScavenging disabled or no-refresh/refresh too longGet-DnsServerScavenging, zone aging
Records not registeredSecure updates only, client cannot authenticate; DHCP registration credentialsZone dynamic update setting, DHCP DNS credentials
Wrong answer after changeCache on server or clientsClear-DnsServerCache, then client cache
SERVFAIL for a DNSSEC-signed zoneValidation failureDisable 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.*

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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
SymptomLikely cause
Internal names failZone missing on server, AD replication issue, wrong client DNS
External names failForwarders unreachable, root hints, firewall to port 53
Stale recordsScavenging not configured
DC records missingNetlogon registration (nltest /dsregdns)

Enable DNS analytical/debug logging only temporarily — it is very verbose.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docWindows networking and network services current

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%
Terminology layer

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.

Aliases that resolve here
DNS troubleshootingSERVFAIL Windows DNSNXDOMAIN Windows DNSDNS timeout
Embedded reference data

Quick lookup tables

DNS Server → DNS Server Troubleshooting reference map

Fast lookup boundaries for DNS Server → DNS Server Troubleshooting.

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
Confirmation

Confirm action

Continue?