1

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.

0

2 Answers 2

6

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.

4
  • 2
    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 Apr 20, 2017 at 0:35
  • Thanks looks like dig also just shows the local DNS resolver assigned from the DHCP server.
    – bayman
    Apr 20, 2017 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. Apr 20, 2017 at 20:01
  • 1
    More details/background/context here: superuser.com/a/606249/98033. Also: thanks @PedroPerez for sharing github.com/pjperez/whoami with us. Dec 12, 2022 at 17:30
1

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .