Surfshark DNS Leak: Reading the Address You See

Every Surfshark DNS leak question is a question about one address: the one an echo test prints while the tunnel is up. If that address belongs to your access network, queries escaped the tunnel and the ISP saw them; if it belongs to the provider's network, they did not. This page measures the judgment that separates the two. We resolved an echo name through four public resolver endpoints, looked up who owns every address that came back, and recorded our own access-network address as the shape a real leak would have echoed.

The results resist a simple story. Two exits sat on their resolver's own ASN and pass cleanly. One sat on a sister network of the same operator, which strict ASN equality would have failed. One belonged to the operator's own infrastructure with no comparable endpoint address from our vantage. None echoed our access network, and every pass needed a shape, not an equality.

2/4resolver exits that landed on their own endpoint's ASN, the clean-pass shape
1/4exit on a sister ASN of the same operator: AS45102 against an endpoint on AS37963
3/3Chromium sessions that handed names to the relay; curl's default mode handed IP addresses
AS140227the access-network ASN a real leak echoes, an ISP network with no hosting flag

A leak verdict is not an address appearing; it is an address belonging. Read the network, then read the shape.

measured

1. What the echoed address has to prove

A DNS leak test asks a name that repeats back the address of whoever resolved it. When a tunnel is down, that address belongs to your ISP, and nobody expects otherwise. When a tunnel is up, the same single address decides the whole verdict: a resolver inside the provider's network produces an address in the provider's network, and a leaked query produces one in yours. Reading a verdict therefore means reading ownership first. We call the step an ownership check: take the echoed address, look up its ASN and its registered operator, and compare both against the network you are paying for and the network you come from.

One scope note keeps this page honest: we did not run the provider's client here, and this page claims no pass or fail for it. What it measures is the judgment any verdict depends on, sampled on our own network through four public resolvers. Verdicts also expire, because resolver pools and exit addresses move; the numbers below are from one morning.

2. The ownership check, run on four exits

Four public DoH endpoints: echoed exit, exit network, endpoint ASN, and verdict shape.
Resolver endpointEchoed exitExit networkEndpoint ASNVerdict shape
Google74.125.179.146AS15169, Google Public DNS (hkg)AS15169clean pass, same ASN
Cloudflare172.70.40.125AS13335, Cloudflare WARPAS13335clean pass, same ASN
AliDNS8.212.182.196AS45102, Alibaba.com SingaporeAS37963same operator, sister ASN
dns.sb45.125.0.26AS9312, Xtom HKGnot resolvable hereoperator network, org-level match

Read the four rows as three shapes of pass. The Google and Cloudflare rows are the clean case: exit and endpoint share one ASN, so the address a test prints provably belongs to the resolver's own network. The AliDNS row is the instructive one: the exit sits on AS45102 while the endpoint answers from AS37963, two different numbers inside one operator. A verdict built on strict ASN equality would have failed that healthy resolver.

The dns.sb row shows the remaining shape: the exit belongs to the operator's own infrastructure, but the endpoint side gave us no comparable address to match from our vantage, so only org-level knowledge settles it. Flags do not rescue the check either. The Cloudflare exit prints a consumer-product org name with its hosting flag set to false, while Alibaba's exit is marked hosting true; a hosting flag answers whether an address is a datacenter, never whose it is.

3. Where the fork actually sits

Ownership is the verdict half; a relay log is the mechanism half. In nine SOCKS5 sessions logged the same day, curl's default mode reached the relay carrying IP addresses in all three of its runs, which means it resolved names itself before connecting and asked a resolver outside any tunnel. The hostname mode carried names in all three runs, and Chromium carried names in all three of its runs as well. Nine rows, one fork, and the fork sits in the client, not in the tunnel.

VPN clients face the same fork, which is why the protections exist: settings that force name resolution inside the tunnel, and a kill switch that fails closed when the tunnel drops so traffic cannot fall back to the access network. Switch names differ across providers; the mechanism is the nine-row fork above. The wrong side of the fork lives in clients with their own resolve modes, command-line tools and downloaders chief among them, exactly where our curl rows landed.

4. Reading your own verdict in one minute

Run the check while connected: open an echo test, read the address, and ask two questions. Does the address belong to your access network's ASN? Then queries escaped and the verdict fails. Does it sit in the provider's network, by ASN or by operator family per the table's shapes? Then the queries are inside. Anything else is indeterminate and gets the ownership check before it gets a word of trust. Run the test twice: our exits reproduced three of three rounds, so a change between rounds means something moved in the path, not that chance intervened.

Our DNS leak tool runs four resolver endpoints in one click and names the endpoint behind each exit, which covers the echo half; an ASN lookup on the echoed address covers the ownership half. Together they are the whole verdict, and they take about a minute. What they cannot do is freeze the answer. Resolver pools change, so a verdict from last month describes last month, and the same is true of every provider's.

Resolver identity is part of a profile's fingerprint: two profiles resolving through different networks produce different ownership rows on every echo test they run.

Download RoxyBrowser

RoxyBrowser keeps each profile's network identity self-consistent so repeated tests read the same way, with official downloads for Windows and macOS at roxybrowser.com.

Frequently Asked Questions

What address makes a DNS leak verdict fail?

One that belongs to your access network. Our baseline row was an address on AS140227, a Hong Kong communications ISP network with no hosting flag. If an echo test returns an address in the network you connect from while a tunnel is up, the resolver that answered sat outside that tunnel, and that is the leak regardless of which provider is connected.

Does any address that is not your ISP mean the test passed?

No, and our four-exit run shows why. Two exits matched their endpoint's ASN exactly. One Alibaba exit sat on AS45102 while the endpoint answered from AS37963, the same operator on a sister network. A verdict that only compares one ASN would have called that healthy resolver a mismatch, so passes are shapes, not equalities.

Which side resolves when a client connects through a tunnel?

It depends on the client, and relay logs make the fork visible. Across nine SOCKS5 sessions, curl's default mode reached the relay with IP addresses three times out of three, meaning the names were resolved outside the tunnel; the hostname mode handed names over three of three, and so did Chromium in all three of its sessions.

How do you check your own connection in a minute?

Connect, run an echo test such as the four-endpoint tool on our DNS leak page, and take the echoed address. If it belongs to your access network's ASN, you have a leak; if it sits in the provider's network, the queries are inside; any other shape goes through the ownership check in the table above. Run it twice, because our exits reproduced three of three rounds.