DNS Troubleshooting
Cheat sheet · https://pcornel.dk/topic.php?topic=3094
Answer
Troubleshoot Windows DNS with Resolve-DnsName or nslookup against specific servers, ipconfig /all for configured servers and suffixes, ipconfig /flushdns, the hosts file and the DNS Client event log.
Remember
- Test against a specific server to separate client and server problems.
- Check the hosts file for overrides.
- Flush the cache after fixing records.
First checks
Resolve-DnsName <name>— resolve via the Windows resolverGet-DnsClientServerAddress— DNS servers per interfaceGet-DnsClientCache— resolver cacheGet-DnsClientGlobalSetting— suffix search listClear-DnsClientCache— flush the cache
Verify in this order
client → cache/hosts → server → authoritative
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.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3094