A DNS leak test cannot see your browser. It sees the recursive resolver that came asking its own name server for a one-time hostname, and it reports that resolver's address, ISP and country. So the first job is to read who that resolver belongs to. There are three possible answers, and only one of them is a fault in the browser.

What a DNS leak test is really telling you

The test showsWhose resolver it isIs the browser at fault?
Your own ISP, in your own countryyour computer's, so the browser resolved the name itself before it used the proxyyes, and it is fixable
A resolver in the same country as your proxy IPthe proxy server'sno, this is the clean result
A resolver in a third country, often Google or Cloudflarethe proxy server's, but it sits somewhere elseno, it is a property of the IP

The first row is the classic leak. Every site you open is looked up through your own ISP's resolver, so the ISP sees the list, and a test page sees a resolver in a country your IP says you are not in.

The third row is the one people spend days on. We did. Whoer took 30% off one of our profiles for "DNS different", and stock Chrome on the same machine did not lose the points, so it looked like our bug. It turned out the stock run had no proxy. Next we sent plain curl through an IP Oasis US session, with no browser involved at all. The resolver came back as Google, first in Germany and then in the Netherlands, while the IP itself was a Verizon address in the United States. The same lookup straight from our build Mac named our real Austrian ISP. So the browser's names were going through the proxy, and the proxy server was resolving them through Google in Europe. The full Whoer readout, check by check, is in Whoer's score explained.

A profile does not open until its proxy has answeredIn Mosaic: Checked before every launch. No profile opens behind a proxy that has not answered. Free covers 3 profiles with no card, and Pro is $25 a month for any number of them.

How it works: Checked before every launch

Where a browser resolves names when it has a proxy

Chromium's own documentation for its proxy code says exactly where name resolution happens for each kind of proxy:

Proxy schemeWho resolves the hostname in Chrome
HTTPthe proxy: "name resolution is always deferred to the proxy"
HTTPSthe proxy, as with HTTP, and the hostname travels inside TLS
SOCKS5the proxy: Chrome "will always use proxy side resolution"
SOCKS4your computer: resolution "is always done client side"

That table is most of the fix. If your browser shows your own ISP on a leak test, look first at a SOCKS4 proxy, and then at anything that decides routing by looking names up locally, such as a PAC script that calls dnsResolve() or an extension that sets its own rules. The same document notes that Firefox lets you choose with network.proxy.socks_remote_dns, while Chrome has no such option. (Chromium's proxy notes cover each scheme in full.)

How to fix a DNS leak in your browser, step by step

  1. Run an extended test, not the standard one. DNS Leak Test's extended test sends about three dozen lookups, so it catches a resolver that only answers some of them. BrowserLeaks' DNS page lists every resolver with its ISP and country.
  2. Run it from the browser and profile you actually use, with the proxy you actually use. A test from a different browser tells you about that browser.
  3. Read the country of every resolver against the country of your public IP, which the same page usually shows at the top.
  4. If you see your own ISP, change the proxy scheme to HTTP, HTTPS or SOCKS5, remove any PAC script or proxy extension that resolves names locally, and test again.
  5. If you see a third country, test the proxy without a browser. Send curl -L through it to a resolver echo such as http://edns.ip-api.com/json. If curl gets the same foreign resolver, the IP chose it and no browser setting will change it. Ask the seller for another pool or region, or try another seller.
  6. Test more than once, on a pinned session. On one profile, in one launch, we reloaded Whoer six times and read 100, 100, 100, 100, 35 and 30. The drops came when the residential session rotated, which means a new proxy server and a new resolver.

Step 5 is the one most guides skip, and it is the one that tells you whether to keep changing browser settings or to stop.

A proxy check in Mosaic: IP address, ISP, HTTPS through the proxy and the IP's score
A proxy check reads the IP, its ISP and its resolver

Why it matters for more than privacy

The privacy problem is the first row: your ISP's resolver sees every name you look up. The consistency problem is the third. Scanners such as Whoer and BrowserScan compare the resolver's country with the IP's country, and a mismatch costs points even though nothing about you leaked. A profile whose IP says Frankfurt and whose resolver says Amsterdam is not unusual for a residential pool, but it is one more thing that does not agree.

How Mosaic handles DNS

Each profile's editor has a Privacy tab, and its first switch is Resolve DNS through the proxy only, on by default. With a proxy attached, the engine starts with a --host-resolver-rules map that sends every hostname to ~NOTFOUND, so if any code path tried to resolve a name on your computer it would fail rather than leak. The browser already hands names to the proxy for HTTP, HTTPS and SOCKS5. The rule is there so that a path we have not thought of fails closed.

The resolver the IP uses is measured instead of guessed. When Mosaic checks a proxy, it asks edns.ip-api.com through that proxy which resolver did the lookup, and shows the answer on a DNS row beside the IP. If the resolver sits in a different country from the IP, the row says the resolver is in a different country from the IP, and the check turns amber, with a note that another pool or seller is the only fix. You see that before the profile opens, because Mosaic checks the proxy before every launch. How to read the rest of a proxy check is in how to check a proxy before you use it.

  1. Open the profile, go to the Privacy tab and leave Resolve DNS through the proxy only on.
  2. On the Proxies page, check the proxy and read its DNS row against the IP's country.
  3. To see it from inside the profile, open the row menu, choose Check detectors, and on the Leaks tab pick BrowserLeaks · DNS or DNS Leak Test (extended).
A Mosaic profile fingerprint: GPU, screen, fonts, timezone and language matched to the proxy's IP
Timezone, language and location are drawn for the IP the proxy check measured

If you are choosing a seller, a residential proxy with country targeting at least lets you pick the IP's country, and the proxy check then tells you whether its resolver agrees.