Which DNS Server is queried

Gloria Gu 3,896 Reputation points
2020-07-15T06:57:59.757+00:00

Helli,
does anyone know a simple way, without the need of using wireshark or such, how to tell under Windows 10 OS which DNS server is queried?
My typical scenario, I use my wireless for internet, and also have connected an SSL OpenVPN adapter for corporate road-warrior VPN. In order the VPN to work properly I have to rely on the fact that my PC asks my company internal DNS server (split DNS) for name resolution. In order to do this, the VPN connection needs to be used. But sometimes I get wrong (public) DNS results. I am aware of network metric topic, but this does not always solve my issues. I just cannot tell what is the procedure of the OS when it comes to which DNS server to ask if there are more then one options.

Thread source link: https://social.technet.microsoft.com/Forums/windows/en-US/aaa6a79f-ba0c-4abe-a996-8c6bce297679/which-dns-server-is-queried?forum=win10itpronetworking

Windows 10 Network
Windows 10 Network
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Network: A group of devices that communicate either wirelessly or via a physical connection.
2,363 questions
0 comments No comments
{count} votes

Accepted answer
  1. Candy Luo 12,711 Reputation points Microsoft Vendor
    2020-07-15T07:41:53.913+00:00

    Hi ,

    Welcome to our new Microsoft Q&A Platform.

    1. You can run command nslookup -d2 domain name (for example: nslookup www.google.com) to check the process of resolution in detail including DNS client queries which DNS server.
    2. The DNS client queries the DNS servers in the following order:

    *The DNS client sends the name query to the first DNS server on the preferred adapter's list of DNS servers and waits one second for a response

    *If the DNS client does not receive a response from the first DNS server within one second, it sends the name query to the first DNS servers on all adapters that are still under consideration and waits two seconds for a response.

    *If the DNS client does not receive a response from any DNS server within two seconds, the DNS client sends the query to all DNS servers on all adapters that are still under consideration and waits another two seconds for a response.

    *If the DNS client still does not receive a response from any DNS server, it sends the name query to all servers on all adapters that are still under consideration and waits four seconds for a response.

    *If the DNS client still does not receive a response from any DNS server, it sends the name query to all servers on all adapters that are still under consideration and waits eight seconds for a response.

    *If the DNS client receives a positive response, it stops querying for the name, adds the response to the cache and returns the response to the client.

    Best Regards,

    Candy

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.