Pcornel
Browse topics
Options
Recent
Favorites
Windows · Technical reference

DNS Servers

Direct answer

DNS servers on a Windows interface are the resolvers it queries, in order. Set them with Set-DnsClientServerAddress or netsh; domain members should point only at internal DNS servers that know AD.

When to use this

Use this when a Windows client uses wrong DNS servers.

First 30 seconds

1. Get-DnsClientServerAddress — per interface.

2. Domain members → only internal DNS servers.

3. Set: Set-DnsClientServerAddress -InterfaceAlias <if> -ServerAddresses a,b.

4. Test: Resolve-DnsName <name> -Server <dns>.

5. ipconfig /flushdns.

Operational verification

interface DNS servers → resolver queries in order

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
Scope / prerequisiteUse this when a Windows client uses wrong DNS servers.
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.

1 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 Common mistakes Narrow the fault
  • Public DNS servers on domain members.
  • Only one DNS server configured.
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
  • Windows queries DNS servers in the configured order.
  • Domain members should only use internal DNS servers.
  • Settings come from DHCP or static configuration.
Key checks
  • Get-NetIPConfiguration — addresses, gateway and DNS per interface
  • Get-NetAdapter — adapters, status and link speed
  • Get-NetRoute -AddressFamily IPv4 — routes and metrics
  • Test-NetConnection <host> -Port <p> — ping, route and TCP port test
  • ipconfig /all — full IP configuration
  • Get-NetIPInterface | Select InterfaceAlias,AddressFamily,Dhcp,InterfaceMetric — DHCP state and metric per interface
ReferenceWhy it matters1 section · depth on demand

How it works

The DNS client sends queries to the first server in the interface's list and moves to the next only if there is no response (timeout), not if it gets a negative answer (NXDOMAIN). Servers come from DHCP (option 6) or static configuration, per interface. On a domain member every listed server must be able to resolve the AD zone, because any of them may be used.

ReferenceImportant terms & boundaries3 sections · depth on demand

In depth

The documented timeout sequence

Microsoft documents that the Windows DNS client sends queries at 0, 1, 2, 4 and 8 seconds and gives up at 10 seconds; what changes with more servers is which server each attempt goes to:

Time (s)1 server2 servers3+ servers
0DNS1DNS1DNS1
1DNS1DNS2DNS2
2DNS1DNS2DNS3
4DNS1allall
8DNS1allall
10stopstopstop

A Name Error (NXDOMAIN) from any server ends the process; the client only moves on when servers do not answer. A fourth server in the list is not queried until at least 4 seconds have passed — applications with shorter timeouts never reach it.

Consequences for configuration

  • Order matters: put the closest, most reliable resolver first.
  • Mixing internal and public resolvers is a bug, not redundancy: if the public server answers NXDOMAIN for an internal name, the client accepts it.
  • More than two or three servers adds little; it mostly lengthens failure time.

Inspect and set

PS C:\> Get-DnsClientServerAddress -AddressFamily IPv4 | Where ServerAddresses
InterfaceAlias  Interface Address ServerAddresses
                Index     Family
--------------  --------- ------- ---------------
Ethernet        12        IPv4    {10.0.0.53, 10.0.0.54}
PS C:\> Set-DnsClientServerAddress -InterfaceAlias Ethernet -ServerAddresses 10.0.0.53,10.0.0.54
PS C:\> Resolve-DnsName dc01.corp.example.com -Server 10.0.0.54 -DnsOnly

Which adapter's servers are used

With several active adapters (VPN, Wi-Fi, virtual switches), Windows sends the query to the servers of the interface it prefers by metric, and the Name Resolution Policy Table (NRPT, Get-DnsClientNrptPolicy) can route specific namespaces to specific servers. A VPN that "breaks internal names" usually has a different interface metric or NRPT rule than expected.

Domain controllers

A DC should point to another DC first and itself second (or loopback), never to public DNS; members should only list AD-integrated DNS servers.

*The DNS server address configuration above are illustrative examples, not captured from a lab or production system.*

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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 IP Configuration → DNS Servers. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://learn.microsoft.com/en-us/windows-server/networking/ · confidence 94%
Confirmation

Confirm action

Continue?