15
5
I have two dns servers configured, which are listed when viewing ipconfig /all
I would like to know which of the two servers I am using at the current time i.e. from my browser or via the tracert
command. I believe that I will be using the first listed server unless it is unavailable at which point I will be using the next one.
I am trying to find out if there is a command I can use which will tell me which one I am using, or alternatively an explanation as to why this is a flawed question.
I'm aware of ipconfig /displaydns
but this is a cached result listing, which also doesn't show which server each result came from.
I'm aware of nslookup [host]
but this uses the current "default" server.
I'm aware of nslookup [server] [host]
but this doesn't help with confirming which dns I am currently using from tracert or browser.
My question comes from a situation where nslookup will give me the expected result for a particular internal host. Simultaneously, my browser, and also tracert
are unable to resolve the host. If tracert and my browser are using the secondary dns server, I'd like to be able to confirm that.
Is there a way to do this?
1Link doesn't work. – Paul Matthews – 2015-01-26T23:25:07.790
Yeah, seems to be down now, I've updated my answer with a new site. – Gaurav Kumar – 2015-01-27T16:00:56.183
This was perhaps the best and easiest way without installing an external utility. Thank You! – Ankur Jain – 2017-02-20T12:31:23.470