DNS Leak Protection: What Shields Queries

DNS leak protection means every name your device resolves travels as ciphertext to a resolver you chose, with no plain-UDP fallback waiting behind it. This page tests that definition on a real build: we toggled Chromium 158's secure DNS three ways, ran a resolver kill switch as the control, and probed the DoT port twice at the TCP and TLS layers.

The result is a shortlist of shields that hold and two that do not. The command line secure-DNS flag produced zero observable protection across three rounds, and the DoT port on 1.1.1.1 answered TCP in 48 ms but reset every TLS handshake, a forged welcome that a port scan alone would score as protection.

3/3navigations succeeded with a dead DoH template in secure mode, where the docs say they should fail
3/3control-flag runs blocked, proving the harness could see resolution fail
48 msTCP answer from 1.1.1.1:853 that TLS reset every time it was tried
7 targetsprobed twice, TCP then TLS, against a live control site that passed both layers

A shield is encryption plus a resolver you chose plus no fallback; anything less still leaks, and some of what calls itself a shield never touched the query.

measured

1. What a leak actually is, and what protection must cover

A leak has two faces. The first is the query itself: a device asks its resolver who owns a name, and that resolver logs it. The second is the transport: even with a trusted resolver, a plain-UDP exchange can be read or rewritten on path. Protection therefore has to hold on both lines at once, ciphertext on the wire and a chosen party at the end of it, because fixing one line leaves the other fully exposed.

The parts of this page map to that split. Section two tests the browser-side shield that vendors ship, secure DNS over HTTPS, using command line switches and a dead-template trap that forces the mode to show its true behavior. Section three moves to the system-level shield, DNS over TLS on port 853, and shows why reaching that port from a controlled network is a different problem from trusting it. For the proxy-side variant, the relay logs on our DNS leak page carry that half.

2. The browser shield: secure DNS under its own trap

Chromium 158 secure DNS flag trap: four configurations × three navigation rounds.
ConfigurationNavigation, 3 roundsWhat it means
Default200 OK, 3/3system resolver answers, the baseline every other row is read against
Secure mode, dns.google template200 OK, 3/3indistinguishable from default, which is the problem: success alone proves nothing
Secure mode, dead template on 127.0.0.1:1200 OK, 3/3should have failed under secure mode; navigation succeeding means the mode never engaged
Control: MAP * ~NOTFOUNDERR_BLOCKED_BY_CLIENT, 3/3resolution-blocked in 26–93 ms, so the harness was fully able to record failure

The control row is what makes the third row readable. A test that never fails cannot distinguish a working shield from a flag that was ignored, so we planted a resolver kill switch that Chromium is documented to honor, and it blocked navigation in all three rounds at 26, 39 and 93 milliseconds. Against that backdrop, the dead-template row is not ambiguous: secure mode without a fallback should have turned the dead template into resolution failure, and it did not, in any of three launches. The same null result held when we re-ran the three rows with every proxy disabled at the command line, so a proxy was not resolving on the flag's behalf.

The honest reading is about channels, not about the feature itself. The settings-page switch and the enterprise policy channel are the two paths vendors document for secure DNS today, and neither is reachable from a headless harness; what this test killed is the habit of quoting command line switches as protection. Verify the browser shield from the settings surface and a probe page, not from a switch name in a launch argument.

3. The system shield: port 853 lies at the TCP layer

DNS over TLS lives on port 853, and the usual advice is to check whether that port is reachable before trusting a DoT resolver. We ran that check as two layers instead of one: a raw TCP connect, then a full TLS handshake with the resolver's name. The control site passed both layers, TCP open at 212 ms and TLS 1.3 completed at 479 ms, which proves the method and the path out of this network are sound. The DoT rows did not fare the same way.

DoT 853 two-layer probe: TCP connect then TLS handshake.
TargetTCP connectTLS handshakeReading
1.1.1.1:853 (cloudflare-dns.com)open, 48 msreset, 69 msport answered, service did not: an intercepted or forged TCP reply
1.1.1.1:53 and :80open, 48–54 msnot applicablethree ports open while :443 timed out, a pattern no real server produces
8.8.8.8:853 and 9.9.9.9:853timeout, 5 snot reachedsilently dropped rather than faked
1.1.1.1:443timeout, 5 snot reachedthe same host whose low ports answered, confirming interference
Control site :443open, 212 msTLSv1.3, 479 msprobe method verified end to end

The finding worth carrying out of this table is that reachability is a claim two layers deep. A port scan sees 853 open on 1.1.1.1 in under 50 milliseconds and reports a working path; the TLS layer never gets a single byte of service, because something on the path fabricates the TCP welcome and then resets the handshake. On this network, every low port of that host answered while its HTTPS port timed out, which no real resolver or web server would ever produce. The consequence for anyone configuring a DoT client is concrete: validate the shield with the handshake, not with the port, or you may finish the setup believing in a responder that exists only as a forged packet.

Two limits belong next to that conclusion. The probes came from one controlled network in one region, and other networks will drop instead of forge, which is why both rows are shown. And a completed TLS handshake proves the server, not the policy: an operating system may still send some queries in plain text regardless of which DoT servers are reachable. That last gap is the documented weak point of system-level shields, and closing it needs a client with no fallback, checkable in its own logs.

4. Choosing a shield, and verifying it in a minute

For a browser-first reader, the browser's own secure DNS switch, set from the settings surface, is the cheapest correct move, followed immediately by a probe that shows which resolver answered. For a proxy-first reader, the decision moves earlier in the chain: if the client hands names to the proxy, as our relay log showed Chromium doing in three out of three SOCKS5 sessions, the proxy operator is now the resolver and the browser's shield never sees the query. For a system-first reader, the DoT route depends on the network not forging the port, which section three shows is not a given, so the handshake check comes before any trust is placed.

The verification habit is the same for all three audiences, and it takes a minute. First, resolve a name whose answer names the resolver that asked, the mechanism our DNS leak tool runs live against four public resolvers. Second, break the trusted path on purpose, a dead template or an unreachable resolver, and confirm the failure is loud rather than silently recovered. Third, repeat once with the tunnel up and once with it down, because protection that exists in only one state is the state you will not be in. A shield that passes all three is real; one that passes none is decoration.

A protection setup only holds if every profile resolves the same way, and a profile that drifted back to the system resolver looks identical until you probe it.

Download RoxyBrowser

RoxyBrowser keeps DNS behavior inside each profile so one reused fingerprint cannot silently differ from the rest, with official downloads for Windows and macOS at roxybrowser.com.

Frequently Asked Questions

What does DNS leak protection actually do?

It encrypts name resolution and removes the fallback to plain UDP. Every shield that matters reduces to two properties: the query leaves as ciphertext, and the resolver that answers is one you chose. Encryption without chosen-resolver control, or the reverse, still leaks part of the picture.

Did Chrome's secure DNS command line flag work in your test?

No. In three launches with secure mode and a deliberately dead template, navigation succeeded every time, although secure mode should have made resolution fail. A control flag that blocks all resolution failed navigation in three out of three runs, so the harness was sound. The command line flag gave no observable protection on Chromium 158.

How do you tell a real DoT server from a faked port?

Complete a TLS handshake. In our probe, 1.1.1.1 answered TCP on 853 in 48 ms but reset the TLS connection every time, while the same method to a control site completed TLS 1.3. A port that answers SYN but cannot finish TLS is an intercepted response, not a resolver, and port scans alone will misread it as open.

Does a proxy protect DNS by itself?

Only when it also resolves names. Our earlier relay log showed Chromium handing hostnames to a SOCKS5 proxy in three out of three sessions, which moves resolution to the proxy operator. A client that resolves locally before connecting, as curl does by default, still leaks the query regardless of the tunnel.