Adjust Windows DNS timeout similar to the Linux resolv.conf?

Solution 1:

You can make the change by adding a registry key. Microsoft has instructions here: http://technet.microsoft.com/library/Cc977482

In case that link stops working, here's the summary:

Use regedit to add DNSQueryTimeouts as a multi-string value to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters. Then add five values indicating the number of seconds that each time limit is applied to the corresponding attempt in the name resolution process. Add a sixth value of zero.

  1. Query the preferred DNS server on a preferred connection.
  2. Query the preferred DNS server on all connections.
  3. Query all DNS servers on all connections (1st attempt).
  4. Query all DNS servers on all connections (2nd attempt).
  5. Query all DNS servers on all connections (3rd attempt).
  6. Must be zero (to indicate the end of the list)

The default values are

1
2
2
4
8
0