DNS leak test

Who is resolving your DNS requests?

The test starts as soon as the page opens: your browser resolves a set of random names, we record which DNS resolvers asked, and compare their countries with the country of your exit IP. It runs in your browser with no sign-up and nothing to install.

Exit IP
Exit country
Network

Testing…

Your browser is resolving a set of random names. This usually takes a few seconds.

DNS resolvers that answered

Testing

Your browser looks up a set of random names, and our own authoritative DNS server records which resolvers asked; if that probe is unavailable, the third-party bash.ws is used. A non-public resolver outside the exit country counts as a possible leak; public DNS such as Cloudflare or Google does not.

How the verdict is decided

  • The resolver list is the DNS resolvers that actually sent a query for the probe domain in this test. Resolvers from the same operator and country are grouped.
  • The exit country is the country the exit IP is registered in. A resolver outside it that is not a public DNS is tagged "Outside exit country" and the verdict is "Needs attention".
  • Public DNS such as Cloudflare, Google and Quad9 is anycast, so it is not counted as a leak in any country and is only labelled "Public DNS".
  • If the owner of a resolver or the exit country cannot be read, no conclusion is drawn: no exit country shows "Cannot tell", and no resolvers at all shows "Test not completed".
  • Countries come from public IP data and may differ from the real location. The result only reflects the lookups this one browser sent.

Check it yourself

These commands show which resolver is looking up names for your device and which DNS servers the system is configured with. Look up the owner of the resolver IP in the output and compare its country with the exit country above.

  • Windows / macOS / Linux: shows the IP of the resolver doing the lookupnslookup whoami.akamai.net
  • macOS / Linux (or Windows with dig installed): same, IP onlydig +short whoami.akamai.net
  • A second service: Google returns the resolver IP it sees (the first TXT value)nslookup -type=TXT o-o.myaddr.l.google.com
  • Windows: show the DNS servers configured on this machineipconfig /all
  • macOS: show the system's DNS configurationscutil --dns
  • Linux (systemd-resolved): show the DNS serversresolvectl status

Once you have a resolver IP, look up its operator and country in the IP lookup tool.

What a DNS leak is and why it happens

Before a device can open a website, a DNS resolver turns the domain name into an IP address. If, after you connect to a VPN or proxy, those lookups still go to a resolver outside it (your local ISP's, for example), that resolver can see which domains you look up. This is usually called a DNS leak.

  • Inconsistent split routing

    When a VPN or proxy routes by domain or by app, some programs may still send their lookups over the local network. DNS settings that differ between the operating system, the router and the VPN client can give the same result.

  • The browser's own encrypted DNS (DoH)

    A browser's "secure DNS" sends lookups straight to the provider it is configured with (Cloudflare or Google, for example), bypassing the resolver set by the system or the VPN. What you see is then the browser's choice, not the one the VPN provides.

  • IPv6 resolvers

    On a network with both IPv4 and IPv6, the system may also have an IPv6 DNS server configured, often handed out by the router. If the VPN only takes over the IPv4 DNS settings, lookups sent over IPv6 can bypass it.

  • Using a public resolver is not a leak by itself

    Public DNS such as Cloudflare, Google and Quad9 is anycast: it answers from a nearby location in whichever country you are in, and choosing it is your own setting. This tool only flags non-public resolvers located outside your exit country.

How to use it

  1. Open this page in the browser you normally use, with your VPN or proxy in the state you normally use it. The test starts automatically and usually finishes within a few seconds.
  2. Look at the exit IP and exit country first: that is where websites see you.
  3. Then read the verdict and the resolver list. A highlighted group with the "Outside exit country" tag is a non-public resolver worth a closer look.
  4. After changing VPN settings, switching servers or toggling the browser's secure DNS, press "Run again". Turn on "Hide IP" before taking a screenshot.

What each result means

The page only shows data it could read and says so when it could not. It does not guess.

Exit IP
The public IP websites see, read from Cloudflare's trace endpoint. If the browser cannot read it, the address our server sees for this request is used instead, and the page says which.
Exit country
The country the exit IP is registered in, from public IP data. Whether a resolver is flagged depends on it.
Network
The operator and ASN the exit IP belongs to.
DNS resolvers
The resolvers that actually sent a query for the probe domain. A test usually shows one to a few; with a public DNS there may be a single group.
Operator and country
The operator and registered country of the resolver IP. Resolvers from the same operator and country are grouped together.
Outside exit country
A tag on non-public resolvers whose country differs from the exit country; the group is highlighted. It is a prompt to check, not a final verdict.
Public DNS
Anycast public DNS such as Cloudflare, Google and Quad9. It is not counted as a leak and is only labelled.
Verdict
One of passed, needs attention, cannot tell, or test not completed. "Passed" only means no non-public resolver outside the exit country was seen this time; it does not mean there are no other leak risks.

DNS leak test FAQ

Does a pass mean my DNS is not leaking?

It only means no non-public resolver outside the exit country was seen in this test. The test looks at lookups sent by the browser; other programs may use different resolvers, so it is worth running the nslookup or dig commands on this page as well.

Why is Cloudflare or Google DNS not counted as a leak?

They are anycast public DNS services that answer from nearby locations in many countries, so seeing them in any country is normal. Choosing a public resolver is your own setting and does not by itself mean requests were intercepted. Only non-public resolvers outside the exit country are flagged.

What should I do if it says "needs attention"?

Check which resolver it is. If it belongs to your local ISP, see whether your VPN client takes over the system DNS, whether the browser's "secure DNS" is on, and whether your router hands out an IPv6 DNS server, then press "Run again". It is a prompt to check; whether it needs fixing depends on how you use your connection.

How does the test work, and are IPs stored?

Your browser resolves a set of randomly generated names. Our own authoritative DNS server records which resolvers asked; if that probe is unavailable, the third-party bash.ws is used instead. Resolver IPs are kept in memory for about 5 minutes only, with no visitor identity and no link to an account. Looking up an IP's owner uses the same cache and privacy policy as the IP lookup tool.

Why does the browser console show a few name-resolution errors?

The probe names exist only to record who asks and never return an address, so the browser failing to resolve them is expected and does not affect the result.

What does "Test not completed" mean?

Neither our probe nor the fallback third-party probe received any resolver. Common causes are a network that blocks lookups of the probe domain, a browser extension that blocks the requests, or a very slow connection. Try another network or turn off blocking extensions.

More free tools

Need an IP in a specific country?

AnboVPN offers dedicated IPs in many regions, and shared IPs billed by data. Compare the options and pick the location you need.