π ~1 min read
Table of contents
Symptom & Impact
External domain lookups are slow or fail, causing package repositories and cloud endpoints to be intermittently unreachable.
Environment & Reproduction
Occurs on Windows Server 2019 DNS servers configured with dead upstream forwarders.
Get-DnsServerForwarder
Resolve-DnsName github.com -Server 127.0.0.1
Root Cause Analysis
Forwarder IPs are unreachable, filtered, or overloaded, so recursion stalls before root-hint fallback.
Quick Triage
Test TCP/UDP 53 reachability to each configured forwarder.
Test-NetConnection 1.1.1.1 -Port 53
Test-NetConnection 8.8.8.8 -Port 53
Step-by-Step Diagnosis
Compare response times with current forwarders versus temporary known-good resolvers.
Measure-Command { Resolve-DnsName powershellgallery.com -Server 127.0.0.1 }
Get-WinEvent -LogName 'DNS Server' -MaxEvents 60

Solution β Primary Fix
Replace unreachable forwarders and clear cache.
Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.
Set-DnsServerForwarder -IPAddress 1.1.1.1,8.8.8.8 -UseRootHint $true
Clear-DnsServerCache -Force
Restart-Service DNS

Solution β Alternative Approaches
If policy forbids internet resolvers, remove forwarders and rely on root hints with approved egress rules.
Remove-DnsServerForwarder -IPAddress 10.10.10.10 -Force
Get-DnsServerRootHint
Verification & Acceptance Criteria
Lookups complete quickly and DNS timeout events cease.
Resolve-DnsName microsoft.com -Server 127.0.0.1
Get-WinEvent -LogName 'DNS Server' -MaxEvents 20
Rollback Plan
Reapply previous forwarders if split-brain or conditional forwarding requires them.
Set-DnsServerForwarder -IPAddress 10.10.10.10,10.10.10.11 -UseRootHint $false
Prevention & Hardening
Continuously monitor forwarder latency and availability.
Get-DnsServerStatistics
Test-NetConnection 1.1.1.1 -Port 53
Related Errors & Cross-Refs
Related to firewall egress restrictions and MTU path issues causing DNS packet loss.
Related tutorial: View the step-by-step tutorial for Windows Server 2019.
View all Windows Server 2019 tutorials on the Tutorials Hub β
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
Microsoft Learn: DNS forwarders and recursion behavior in Windows Server.
Need Expert Help?
If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today β we respond within one business day.