How do I determine the public DNS resolver that's being used to resolve public internet addresses from laptop connected to a network? I can only see the internal DNS resolver address from running ipconfig in Windows.


You can try dig whoami.akamai.net. The Akamai DNS servers are set to respond to this name with the IP address of the server that requested it, so that shows you the farthest upstream dns server in that chain.

Otherwise, no. Unless somebody decides to advertise it, there's no way to find out who their upstream DNS is.

| improve this answer | |
  • 1
    This is the right answer. I would add that you might want to repeat the test a few times in case your provider is load balancing the outbound queries. You can also setup your own "DNS reflector" service. I coded one as part of my Golang learning: github.com/pjperez/whoami – Pedro Perez Apr 20 '17 at 0:35
  • Thanks looks like dig also just shows the local DNS resolver assigned from the DHCP server. – bayman Apr 20 '17 at 19:54
  • 1
    Yes, it does tell you the local DNS resolver. But the A record that whoami returns is the requesting server's address. – Duncan X Simpson Apr 20 '17 at 20:01

I used dnscrypt had the same problem but found a useful site ipleak.net that does exactly that, and then also shows all the dns servers that your isp had.

Using dig whoami.akamai.net also works, but it only shows ip but not the details.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.