2
2
How do i determine what is the "active" dns servers in defacto use?
If I do nslookup
windows actively connects to (a) specific dns-server(s).
My guess is that it is the nameserver(s) configured for the network interface with the current default gateway but that is a pretty vague way to put it.
What if I have several network interfaces configured, all up, all with different nameservers configured. How do windows determine which dns servers to query?
I totally forgot about the binding order. . . – surfasb – 2011-07-24T15:34:05.530
Ok, that makes sense. The routing table is used first, then the binding order is used if the metrics are the same. http://technet.microsoft.com/en-us/library/cc779696(WS.10).aspx
– surfasb – 2011-07-24T15:48:13.863@surfasb Actually the routing table has nothing to do with what DNS server it chooses, only the binding order, and then it goes in order. If you are talking actual traffic, and two interfaces can get to the same IP, like having both LAN and Wireless connections to the Internet, it should go by metric. If the metrics are the same or automatic, it SHOULD choose the faster interface. See my recent answer here, where I quote the help file regarding this: http://superuser.com/questions/313679/multiple-network-connections-on-windows-7/313685#313685
– KCotreau – 2011-07-24T16:27:58.063Ah true! No point using the table if you don't know the IP address. Initially, my understanding was the resolver queries all the adapters at once. But sometimes, that isn't always the case. It only queries all the adapters if the first query gets no answer. – surfasb – 2011-07-24T20:08:28.420
@surfasb Right, it will go in binding order: First adapter, primary and secondary DNS; Second adapter, primary and secondary; and so on. As I mentioned in my answer, this might help you if you ever have to set up a VPN to a domain. Moving the [Remote Access Connections] to the top will make it use the domain's DNS servers, and resolve internal servers, etc. Otherwise, you could be trying to resolve 192.168.x.x-type addresses using a public DNS server, and fail of course. This could potentially drive someone crazy if they did not know what to look for. – KCotreau – 2011-07-24T21:08:59.650