# What is a DNS leak?

> A DNS leak is when the names you visit are looked up through your own provider's resolver instead of through the VPN or proxy, so it sees every site you open.

Source: https://mosaicbrowser.com/glossary/dns-leak

## DNS leak: when your lookups skip the proxy

A DNS leak is when your browser or computer looks up the names of the sites you visit through your own internet provider's resolver, outside the VPN or proxy you are using. The provider sees every name, and a test page sees a resolver that does not match your IP.

![DNS leak, drawn as a mosaic of tiles](https://mosaicbrowser.com/covers/dns-leak.webp)

Before a browser can open `example.com` it has to turn the name into an address, and it asks a DNS resolver to do that. On a home connection the resolver usually belongs to your internet provider. When you add a VPN or a proxy, the idea is that the lookups go through it too. A DNS leak is the case where they do not: the pages travel through the VPN or proxy, while the list of names goes to your provider in the clear.

## Why a DNS leak matters

There are two separate problems. The first is privacy. Whoever runs the resolver sees every name your browser looks up, and the time it did, which for most people is the provider the VPN was meant to keep out.

The second is consistency. A page can find out which resolver looked up its own name, by serving a one-time hostname and asking its name server who came asking. A visitor whose IP sits in Frankfurt and whose resolver belongs to a broadband company in another country is two places at once, and scanners compare those two countries.

## How a DNS leak test works

A leak test page makes your browser look up a handful of random subdomains that exist nowhere else. Its own name server logs which resolvers asked, and the page shows you their addresses, owners and countries. The test cannot see your browser's settings; it only sees who asked. [DNS Leak Test's explainer](https://dnsleaktest.com/what-is-a-dns-leak.html) describes the standard and extended versions; the extended one sends more lookups and catches a resolver that answers only some of them.

A result reads one of three ways:

| The resolver belongs to | What it means |
| --- | --- |
| Your own internet provider | A leak: names were resolved on your computer |
| A network in your IP's country | Clean: the proxy server resolved the names |
| A third country, often a public resolver | Not a leak, but the IP's own choice, and a mismatch scanners notice |

Mosaic is a desktop app

Email yourself the link and open it on your computer.

[How it works: Checked before every launch](https://mosaicbrowser.com/features/proxy-check-before-launch)

## Where a browser resolves names behind a proxy

Chromium's [proxy notes](https://chromium.googlesource.com/chromium/src/+/HEAD/net/docs/proxy.md) settle most of it. With an HTTP or HTTPS proxy, "name resolution is always deferred to the proxy". With SOCKS5, Chrome "will always use proxy side resolution". With SOCKS4, resolution "is always done client side", which is the classic browser leak. A PAC script that calls `dnsResolve()`, or an extension that decides routing by looking names up, can also resolve on your machine. A system VPN is a different story again, because there the operating system decides which resolver it uses.

The third row of the table is the one that wastes days. In our own testing, Whoer took points off a profile for "DNS different". We then sent plain `curl` through the same residential proxy, with no browser at all, and the resolver came back as Google in Germany and then in the Netherlands while the IP was a US address. Nothing leaked; the proxy server resolved names through Europe. The step-by-step version, including that `curl` test, is in [how to fix a DNS leak in your browser](https://mosaicbrowser.com/guides/fix-dns-leak-in-browser).

## How Mosaic handles DNS

Each profile's Privacy tab has **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 a code path that tried to resolve a name on your computer would fail rather than leak. The browser's names already go to the proxy for HTTP, HTTPS and SOCKS5; the rule is there for the path nobody thought of.

The IP's own resolver is measured rather than assumed. When Mosaic [checks a proxy before launch](https://mosaicbrowser.com/features/proxy-check-before-launch), it asks `edns.ip-api.com` through that proxy which resolver did the lookup and shows it on a DNS row beside the IP. If the two are in different countries, the row says the resolver is in a different country from the IP, because the only fix there is another pool or seller.

![A proxy check result in Mosaic: latency, IP address, ISP, HTTPS through the proxy and reputation](https://mosaicbrowser.com/shots/proxy-check.png)
*A proxy check reads the IP and the resolver it uses*

A DNS leak and a [WebRTC leak](https://mosaicbrowser.com/glossary/webrtc-leak) are tested separately in Mosaic too. The proxy check reads the resolver; the leak test, run from inside the profile's own page, reads the IP address, the WebRTC candidates and the timezone.

## Sources

1. [DNS Leak Test: What is a DNS leak?](https://dnsleaktest.com/what-is-a-dns-leak.html), read November 2, 2026
2. [Chromium: Proxy support in Chrome (net/docs/proxy.md)](https://chromium.googlesource.com/chromium/src/+/HEAD/net/docs/proxy.md), read November 2, 2026

## Questions

### How do I know if I have a DNS leak?

Run an extended test on a DNS leak test page from the browser and proxy you actually use. If any resolver it lists belongs to your own internet provider, your lookups are leaking.

### Is a foreign resolver on a leak test a DNS leak?

Not by itself. If the resolver is not your own provider's, the proxy's IP chose it. It can still cost points on scanners that compare the resolver's country with the IP's.

### Does SOCKS5 prevent DNS leaks in Chrome?

For the browser's own requests, yes. Chromium's proxy notes say it always resolves names on the proxy side for SOCKS5. SOCKS4 is the case where Chrome resolves names on your computer.

### Is a DNS leak the same as a WebRTC leak?

No. A DNS leak exposes the names you look up and the resolver you use. A WebRTC leak exposes your real IP address through a peer connection. Both are tested separately.

## Related

[How to fix a DNS leak in your browser](https://mosaicbrowser.com/guides/fix-dns-leak-in-browser): A browser DNS leak is either your own machine resolving names or a proxy IP using a resolver abroad. How to tell the two apart, and the fix for each.

[WebRTC leak: when a page finds the address behind your proxy](https://mosaicbrowser.com/glossary/webrtc-leak): A WebRTC leak is a page learning your real IP address through WebRTC's STUN requests, which can go around a proxy or VPN instead of through it.

[Check the proxy before launching a browser profile, every time](https://mosaicbrowser.com/features/proxy-check-before-launch): Mosaic checks the proxy before launching a browser profile: it must answer and carry HTTPS. If it does not, nothing opens and the error names the proxy.

[How to check a proxy before you use it](https://mosaicbrowser.com/guides/how-to-check-a-proxy-before-you-use-it): Check that a proxy answers and connects, where its IP really is, whether the address is residential or blocklisted, and that the browser stays behind it.

[Residential proxy: an IP on a home internet connection](https://mosaicbrowser.com/glossary/residential-proxy): A residential proxy sends your traffic out through an address an ISP assigned to a home connection, so sites see a household rather than a data center.







[Datacenter proxy: an IP that belongs to a server](https://mosaicbrowser.com/glossary/datacenter-proxy): A datacenter proxy's IP is an address a hosting company owns. One lookup, such as ip-api's hosting field, tells a site before your browser says anything.

## See DNS leak on a real profile

Mosaic shows the values a site reads, per profile, and runs a leak test from inside the profile’s own page. Free covers 3 profiles with no card, and Pro is $25 a month for any number of them.

Mosaic is a desktop app

Email yourself the link and open it on your computer.
