This is simply how nslookup works. It always picks the primary DNS server from the list of DNS servers configured on the DNS client. This does NOT mean that the DNS client won't be able to automatically failover to the next DNS server on the list and use it for name resolution. That should happen by default.
If you want to expedite this automatic failover, you can try the following:
- Use the
DnsQueryTimeouts
registry key:- It controls how quickly the client times out and attempts alternate DNS servers.
- Registry path:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters
- Create a
REG_SZ
value namedDnsQueryTimeouts
with the format:
This means:1 2 2
- Try first DNS server, wait 1s.
- Retry after 2s, then 2s
- Move on to next DNS server quicker.
After applying this, restart the DNS Client service:
Restart-Service dnscache
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin