DNS Leak Test — Which Resolver Answered, and Who Runs It

A DNS leak test is only as good as its hostnames. Each probe asks for one that has never existed, so only the resolver that looked it up can answer.

Two runs of twelve probes, ten seconds apart, returned four addresses and five. All of them belonged to the same network.

The test below runs six probes in sequence and prints the resolver address, the operator behind it, and how long the answer took.

Twenty-four probes in eighty-three seconds returned five resolver addresses, all inside one /24 and one operator. The count moved between runs; the operator never did.

probed

Resolver probe

Six probes. Each asks for a hostname that exists once, for that request only.

Not run yet.

Resolver probe
#ResolverNetworkRTT
1waitingwaitingwaiting
2waitingwaitingwaiting
3waitingwaitingwaiting
4waitingwaitingwaiting
5waitingwaitingwaiting
6waitingwaitingwaiting
Waiting for the first answer.
Run the test to produce a copyable result line.

Resolver attribution is read from a public EDNS endpoint, and every request is sent to a hostname generated for that request alone. This page stores no address, sets no cookie, and writes no result to a server.

1. One probe cannot tell you how many resolvers you use

The first probe of run A answered on .150. Its second probe answered on .147. Between those two requests nothing on this machine changed except thirty seconds.

Run B started ten seconds after run A finished, and opened on .148: an address that did not appear once in run A's twelve probes. Both runs answered twelve out of twelve, with no timeouts and no retries.

Twenty-four requests produced twenty-four answers between 1,870 ms and 6,655 ms. The most frequent address appeared eight times, the rarest once. A tool that asks once returns whichever member the load balancer picked for that request.

One probe cannot tell you how many resolvers you use
MeasureRun ARun BBoth
Window38 s35 s83 s
Probes answered12 of 1212 of 1224 of 24
Distinct addresses455
Most frequent address.147, 4 times.147, 4 times.147, 8 times
Rarest address.177, 2 times.148, 1 time.148, 1 time
Median round-trip2,560 ms2,012 ms2,226 ms
Range1,896–4,831 ms1,870–6,655 ms1,870–6,655 ms

Each probe requested a hostname generated for that request only, from one machine on one network. Round-trip time is wall time for the request plus its redirect, so it carries the attribution endpoint's own latency as well.

The count is a property of the pool in front of the resolver, not of the setting you configured.

2. Five addresses, one operator: why the count is the wrong number

All five addresses sit inside 219.128.79.0/24, and all twenty-four answers carried one operator string. A round-robin pool in front of a single resolver farm produces exactly that shape: more addresses than operators, stable operator.

Reports that print six resolver rows and call it a leak are reading the pool as evidence. Six rows from six operators is a finding. Six rows from one operator is the same farm answering six times.

What decides the verdict is a comparison between two things: who operates the resolver, and where the address you exit from sits. Everything else in a leak report is context.

Five addresses, one operator: why the count is the wrong number
What you seeWhat it meansWhat to do
Several addresses, one operator, one /24A resolver pool. Anycast and round-robin answer from different boxes of the same farm.Nothing.
Several addresses, two or more operatorsSplit resolution. Part of your queries left through a resolver your proxy does not control.Check whether the proxy carries DNS, or switch to remote resolution.
One address, operator is your own access provider, exit is abroadThe classic leak: the query never left your network.This is the one case that must be fixed.
One address, operator is a hosting network abroadRemote resolution worked. Encrypted DNS produces a similar row.Nothing, then read the limit list below.

Address count is not operator count. Read the operator column first; the address only tells you which box answered.

The row that matters on this page is the second one: a pool is normal, a second operator is not.

3. With SOCKS5, one letter decides who resolves

A SOCKS5 URL carries its DNS policy in one character. socks5:// resolves the hostname locally: the operating system asks your own resolver, then hands the proxy a finished address. socks5h:// passes the hostname through, and the proxy resolves it from its own network.

The difference shows up in one command each. Both connect; only the second keeps the lookup away from your resolver.

curl -x socks5://HOST:PORT  -s https://example.com -o /dev/null -w '%{http_code}\n'
curl -x socks5h://HOST:PORT -s https://example.com -o /dev/null -w '%{http_code}\n'

With socks5:// the resolver row on this page shows your own access provider while the exit address sits in another country. That is a leak, and the proxy did not cause it. Browsers and most extensions accept a host, a port and a username, with no switch for the letter, so a proxy configured in the browser resolves locally whatever the provider intends.

With SOCKS5, one letter decides who resolves
SchemeWho resolvesResolver row hereWhen it fails
socks5://Your machineYour own resolverWhenever the exit is in another country
socks5h://The proxyThe proxy's networkWhen the proxy refuses to resolve
Browser or extension fieldYour machine, alwaysYour own resolverMost browser proxy setups

Verified against the RFC 1928 command flow: with remote resolution the proxy receives the hostname in the CONNECT request and performs the lookup itself.

4. What this test cannot see

Four limits, stated so the rows above are not read as more than they are.

  1. 1. DNS over HTTPS inside the browser. The query travels to the encrypted-DNS provider, so the resolver row shows that provider's address. The answer is true, and the operator behind it is not the one you configured.
  2. 2. Any network but this one. One vantage point, one moment. The same laptop on hotel Wi-Fi and on a tethered phone can return different operators.
  3. 3. The subnet, not only the address. Some resolvers forward a client subnet, so the name server sees your /24 even when the operator is correct. This test reads the resolver address and nothing below it.
  4. 4. Intent. A resolver inside the exit country proves the query arrived there. It does not prove the proxy carried it, and the two are not the same finding.

A DNS leak test compares two addresses: the resolver that answered your probe, and the address you leave from. Five addresses from one operator is a pool; one address from your own access provider while the exit sits abroad is the leak. With SOCKS5 the switch is a single letter, socks5:// resolves locally and socks5h:// lets the proxy resolve, and most browser proxy fields never expose it.

If the resolver row names your own network, the next question is which address you actually leave from: check the exit IP before you trust the tunnel. If you want the full list of what a browser proxy leaves visible, the leak surface is wider than DNS.

Frequently asked

Is a single resolver in the result a pass?

Not by itself. The first probe of run A returned .150 and the second returned .147; run B opened on .148, an address run A never saw. One address means one member of the pool answered, not that only one exists.

Why did I get five addresses from one provider?

Because the provider runs a pool. All five addresses sat inside 219.128.79.0/24 and every answer carried the same operator string. Counting addresses answers a different question than asking who runs them.

Does a VPN always pass this test?

Only if it carries DNS as well as traffic. A tunnel that routes only TCP leaves the query on your own resolver, and this test will show that resolver's operator while the exit address sits elsewhere.

How do I stop a SOCKS5 setup from leaking DNS?

Use remote resolution: socks5h:// instead of socks5://. With socks5h the proxy receives the hostname and resolves it from its own network, so the query never reaches your local resolver. Most browser extensions do not expose this switch.