Pcornel
Browse topics
Options
Recent
Favorites
Windows · Technical reference

DNS Client

Direct answer

The Windows DNS client resolves names using its cache, the hosts file, configured DNS servers and suffix search lists, and registers the computer's own records dynamically in DNS.

When to use this

Use this when a Windows machine resolves names wrongly or slowly, or when DNS registration of the machine fails.

First 30 seconds

1. Resolve-DnsName <name> — answer?

2. Which server? Get-DnsClientServerAddress.

3. Query directly: Resolve-DnsName <name> -Server <dns>.

4. hosts file or cache override?

5. Suffixes for short names.

Operational verification

application → DNS Client service → cache/hosts → servers → answer

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 · Windows / PowerShell · Windows / Windows Server / PowerShell
Key commandnslookup
Scope / prerequisiteUse this when a Windows machine resolves names wrongly or slowly, or when DNS registration of the machine fails.
Troubleshoot · 1Reference · 2
What next?2 suggested next steps
Child topics (this level)6
Catalog command links3
Evidence0
On this pageJump to a specific section
Windows command reference

Primary Commands

Configuration and operational commands for this Topic.

Drill down

Subtopics

Go one level deeper into this subject.

Key points
  • The hosts file wins over DNS.
  • Negative answers are cached too.
  • Domain members must use internal DNS only.
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
ReferenceWhy it matters1 section · depth on demand

Internals and state

Windows name resolution uses the caller and DNS Client service/cache, suffix/search policy, configured interface DNS servers and recursive/authoritative responses.

ReferenceHow it works1 section · depth on demand

State

Windows name resolution uses the caller and DNS Client service/cache, suffix/search policy, configured interface DNS servers and recursive/authoritative responses.

ReferenceImportant terms & boundaries3 sections · depth on demand

How it works

The DNS Client service (Dnscache) resolves names for applications: it checks the hosts file entries and its cache, then queries the configured DNS servers, appending suffixes for single-label names. It also caches answers (positive and negative) and registers the computer's A/AAAA records dynamically. Separate resolvers run first for some names: NRPT rules (DirectAccess/VPN), and LLMNR/mDNS for local names if DNS fails.

Platform, version and operating-envelope scope

Windows DNS Client and Windows Server DNS where applicable; NRPT, DoH and interface behavior vary by release/policy.

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