Use this when understanding Windows name resolution order.
DNS Resolver
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.
1. Get-Service Dnscache — running.
2. Resolve-DnsName <name> -DnsOnly.
3. NRPT rules (DirectAccess/VPN): Get-DnsClientNrptPolicy.
4. Server order and failover.
5. LLMNR/NetBIOS fallback for single-label names.
query → NRPT → cache → hosts → configured servers → fallback
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Resolve-DnsName host -DnsOnlyVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Commands Verify boundary
Resolve-DnsName host -DnsOnly
Get-DnsClientCache | Select -First 10
Get-DnsClientNrptPolicy
Step 2 Common mistakes Narrow the fault
- Assuming nslookup shows what applications resolve (it bypasses the client cache and NRPT).
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Short names get DNS suffixes appended before querying.
- Windows tries configured DNS servers in order.
Resolve-DnsName <name>— resolve via the Windows resolverGet-DnsClientServerAddress— DNS servers per interfaceGet-DnsClientCache— resolver cacheGet-DnsClientGlobalSetting— suffix search listClear-DnsClientCache— flush the cache
ReferenceHow it works1 section · depth on demand
Windows internal processing path
The key focus is Windows DNS client policy, cache, suffix/search behavior, NRPT/interface resolver selection, query/response and consumer retry. Windows name resolution can involve cache, suffix/search expansion, interface DNS servers and policy such as NRPT before a DNS request is emitted. A cached answer bypasses the wire query; a successful DNS response can still be rejected/unused by the consuming application or be semantically wrong for the intended service.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
The Windows DNS Client service (Dnscache) resolves names: checks the cache (including hosts file entries), then queries DNS servers per interface in order, appending suffixes from the search list. LLMNR and NetBIOS may follow for single-label names.
Resolve-DnsName srv01.corp.example.com -Type A
Resolve-DnsName srv01 -DnsOnly
Get-DnsClientServerAddress -AddressFamily IPv4
Get-DnsClientGlobalSetting # suffix search list
Get-DnsClientCache | ? Entry -like '*srv01*'
Disable LLMNR and NetBIOS over TCP/IP in managed networks — both are abused for credential capture (Responder).
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in DNS Client → DNS Resolver. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows-server/networking/dns/dns-client-settings · confidence 94%