Pcornel
Browse topics
Options
Recent
Favorites
Windows · Technical reference

DNS Resolver

Direct 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.

When to use this

Use this when understanding Windows name resolution order.

First 30 seconds

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.

Operational verification

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

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Windows networking and network services
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformWindows networking and network services
Key commandResolve-DnsName host -DnsOnly
Scope / prerequisiteUse this when understanding Windows name resolution order.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • Short names get DNS suffixes appended before querying.
  • Windows tries configured DNS servers in order.
Key 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
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).

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docWindows networking and network services current

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%
Confirmation

Confirm action

Continue?