DNS leak: why DNS gets past your VPN and how to fix it
Your VPN is on, and Whoer shows a German address. But the DNS row in the IP address card is red, and it shows your real country. DNS different appears under the score. How did DNS get around the VPN?

First, what DNS is and how Whoer gets to see it. Then where a leak comes from.
What DNS is
Before opening a site, your computer looks up its address. It asks a DNS server: where is whoer.net? Usually that's your provider's server or a public one like Google or Cloudflare. To find the answer, the DNS server itself asks the site's name servers. At that moment the site sees your DNS server, not you.
A VPN is supposed to take all traffic into the tunnel, DNS questions included. If even some of them go around it, that's a DNS leak.
What Whoer checks
The Whoer page loads a few addresses with unique names on Whoer's own domain. Only a DNS server asking Whoer's name servers can find their addresses. That's how Whoer learns which DNS servers work for your browser, and it finds their country by their addresses.
The rule is simple. If at least one DNS server with a known country is in the country of your IP address, all is well. If none is, it's a leak: the DNS row in the IP address card turns red, and the score loses up to 30%. If no server's country could be found, there's no conclusion. The servers themselves, with addresses and flags, are on the Extended version tab in the DNS card.
Why websites care
Your provider's DNS server sits in your country and often in your city. If the VPN address is German and the DNS server belongs to your home provider, the site sees both at once. That's almost as precise as your real address.
How a public DNS picks a country
Google, Cloudflare and other big services run servers all over the world behind one address. The one closest to whoever asks answers. So 8.8.8.8 doesn't make you American, whatever old advice promises. If the question goes through the VPN, a server near the VPN answers, and the country matches. If it goes around, a server near you answers.
Where the leak comes from
The VPN doesn't change DNS
Some VPNs leave your provider's DNS servers in the system. Questions go to them, and a server in your country answers on your behalf.
Windows asks every connection at once
Windows can send a DNS question to all network connections at once to get an answer faster. One of them goes around the tunnel.
A proxy without remote DNS
If the browser goes through a SOCKS proxy, by default it looks up names itself, through your provider. The proxy only gets a ready address.
Secure DNS in the browser
Chrome, Edge and Firefox have secure DNS. If it's set to your provider's server or a server in your country, the browser asks it, even through the tunnel.
IPv6 around the VPN
A VPN that only carries IPv4 lets DNS questions over IPv6 go around it.
How to fix it
- Turn on DNS leak protection in your VPN app. Good VPNs have it on by default.
- Make sure the VPN supports IPv6 or blocks it.
- In the browser's secure DNS, pick a big public service, or turn it off if the VPN handles DNS.
- With a SOCKS proxy, turn on name lookups through the proxy. In Firefox it's the Proxy DNS when using SOCKS v5 checkbox in network settings.
- On Windows, if the VPN doesn't do it itself, stop DNS from going to every connection with the Turn off smart multi-homed name resolution group policy.
What doesn't help
- Setting 8.8.8.8 instead of your provider's DNS. If the question goes around the tunnel, a Google server near you answers.
- Changing the User-Agent, clearing cookies, incognito mode. DNS works below the browser.
- A VPN extension in the browser. The system still looks up the names.
How to check the result
Reload the Whoer page: the DNS check runs again every time it opens. If it worked, the DNS row in the IP address card is green and shows the same country as your address.

A detailed report on every server is on the separate DNS leak test page.
Summary
- Whoer sees the DNS servers that look up names for your browser and finds their country.
- If none of them is in the country of your IP address, that's a DNS leak.
- A public DNS answers from the nearest point, so on its own it doesn't change your country.
- DNS leak protection in the VPN fixes it, together with IPv6 under control and name lookups through the proxy.