Pcornel
Windows · DNS Client

DNS Troubleshooting

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

Back to the Topic

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 resolver
  • Get-DnsClientServerAddress — DNS servers per interface
  • Get-DnsClientCache — resolver cache
  • Get-DnsClientGlobalSetting — suffix search list
  • Clear-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

Confirmation

Confirm action

Continue?