DNS Resolver
Cheat sheet · https://pcornel.dk/topic.php?topic=3089
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 resolverGet-DnsClientServerAddress— DNS servers per interfaceGet-DnsClientCache— resolver cacheGet-DnsClientGlobalSetting— suffix search listClear-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