How long does a Windows client wait before trying its second or third DNS server? 1 second, then 2, then all servers at 4 and 8 seconds, giving up at 10. A Name Error stops the search, and a 4th server waits at least 4 seconds.
Home › Guides › DNS client timeouts with multiple DNS servers
Last updated 21 November 2026
A Windows DNS client doesn't wait long for its first DNS server, but it only gives a few of them a fair chance. Per Microsoft (KB 2834226), it queries the first server, moves to the second after 1 second and the third after 2 seconds, queries all servers at once at 4 and 8 seconds, and gives up at 10 seconds. A Name Error (negative answer) from any server stops the process at once: the client only tries another server when the previous ones are unreachable, not when they say the name doesn't exist. So if the only working DNS server is in position 4 or lower in the list, expect at least 4 seconds of delay before it's asked, which can break applications with a shorter timeout. Put working servers in the first three positions, and make sure every listed server returns the same answers.
Microsoft's three cases, for a client with one, two, or three or more DNS servers on the network adapter (seconds since the first query):
| Time | One DNS server | Two DNS servers | Three or more DNS servers |
|---|---|---|---|
| 0 | Query the server | Query the first server | Query the first server |
| 1 | No answer: query the server again | No answer: query the second server | No answer: query the second server |
| 2 | No answer: query it again | No answer: query the second server again | No answer: query the third server |
| 4 | No answer: query it again | No answer: query all servers at the same time | No answer: query all servers at the same time |
| 8 | No answer: query it again | No answer: query all servers at the same time | No answer: query all servers again at the same time |
| 10 | No answer: stop querying | No answer: stop querying | No answer: stop querying |
With a single server the client queries the same server five times before it times out.
Microsoft's example: client 10.0.0.31 with five DNS servers (10.0.0.1 to 10.0.0.5) querying for microsoft.com. Time offsets from the capture, shortened:
0.000 10.0.0.31 -> 10.0.0.1 Query for microsoft.com of type Host Addr 0.986 10.0.0.31 -> 10.0.0.2 Query for microsoft.com of type Host Addr 1.989 10.0.0.31 -> 10.0.0.3 Query for microsoft.com of type Host Addr 3.986 10.0.0.31 -> 10.0.0.1, .2, .3, .4 and .5 (same query to all five) 7.995 10.0.0.31 -> 10.0.0.1, .2, .3, .4 and .5 (same query to all five)
10.0.0.4 and 10.0.0.5 are first asked after about 4 seconds. In the two-server example the client asks 10.0.0.1 at 0 seconds, 10.0.0.2 at 1 and 2 seconds, and both at 4 and 8 seconds. All queries use the same query ID.
Any Name Error response from any of the DNS servers ends the process. The client doesn't retry with the next server if the response was negative; it tries new servers only if the previous ones are unreachable. With a single server, a negative answer also means no retry. So every DNS server you list should be able to answer for the same names: a server that answers Name Error ends the lookup, even if another server further down the list has the record.
If the only reachable server is in position 4 or higher, there is an expected delay of at least 4 seconds after the original query before the client tries it. That can cause issues if the application that asked for the resolution has its own timeout lower than this. Microsoft says the only way to have that server queried earlier is to put it in the first three positions. Check the order with ipconfig /all. To change it, Microsoft's forwarder troubleshooting article sets the client's DNS servers with:
Set-DnsClientServerAddress -InterfaceAlias "Interface-Name" -ServerAddresses ("IP1")
List the servers in the order you want them asked.
Microsoft recommends configuring every Windows client with more than one DNS server. Several server IPs keep names resolving if the only DNS server, its network link or the network between client and server fails; without that, name failures can make applications and components hang while they wait for timeouts. Just keep the timeline above in mind when you choose how many to list and in what order.
DNS servers have a similar fallback for their own forwarders, with server-side timeouts: with defaults only the first three forwarders or two conditional forwarders are used. See DNS forwarders and conditional forwarders failing.
Look up DNS Server events such as 4013 in the Windows Event ID Lookup, copy the Set-DnsClientServerAddress and ipconfig /all lines from the PowerShell Cheat Sheet, pull query times out of exported DNS client captures with the Regex Tester, check that each DNS server address is reachable from the client subnet with the IPv4 Subnet Calculator or IPv6 Subnet Calculator, and identify the vendor of a device answering on a DNS server address with the MAC Vendor Lookup. Related guides: DNS forwarders and conditional forwarders failing, DNS Server event 4013, DNS zone transfer fails with the Name Servers tab setting and common Windows DNS Server and DHCP Server errors.
Choosing the preferred and alternate DNS servers for a domain controller? See domain controller DNS client settings.
Only some names or clients time out on a Windows Server 2016 or later DNS server? Check for IGNORE policies; see DNS policy query filters.
Every Windows DNS Server and DHCP Server event and symptom in one place: common Windows DNS Server and DHCP Server errors.
1 second. If the first server doesn't answer within 1 second, the client queries the second server in the list.
After 10 seconds. It queries all servers at the same time at 4 and 8 seconds, and stops if there is still no answer 2 seconds later.
No. Any Name Error response from any server stops the process. The client tries new servers only if the previous ones are unreachable.
The client asks the first three servers one by one and only queries all servers at 4 seconds. If the only reachable server is in position 4 or higher, expect at least 4 seconds of delay, so put working servers in the first three positions.
Five times, at 0, 1, 2, 4 and 8 seconds, before it times out at 10 seconds.
Runbooks, checklists and helpdesk templates: IT Admin Packs on Gumroad.