Pcornel
Windows · DNS Client

DNS Resolver

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

Back to the Topic

Answer

The Windows DNS resolver looks up names by checking the hosts file and cache, then querying configured DNS servers in order, applying suffixes for short names, and falling back to LLMNR or NetBIOS if enabled.

Remember

  • Short names get DNS suffixes appended before querying.
  • Windows tries configured DNS servers in order.

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

query → NRPT → cache → hosts → configured servers → fallback

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=3089

Confirmation

Confirm action

Continue?