VPN Knowledge Scan: What Is a UDP DNS Leak?
A DNS leak = your traffic takes the tunnel, but your domain lookups run naked. The bytes to google.com may be encrypted, but the "which IP is google.com" query goes plaintext to your ISP — everything…
VPN Knowledge Scan: What Is a UDP DNS Leak?
A DNS leak = your traffic takes the tunnel, but your domain lookups run naked. The bytes to google.com may be encrypted, but the "which IP is google.com" query goes plaintext to your ISP — everything you did is hidden while every destination you went to is exposed. Since DNS rides UDP port 53 by default, it's also the most classic of the "UDP-type" leaks.
The "VPN Knowledge Scan" series walks through a VPN's leak blind spots one by one — we start with the most classic of them all, the DNS leak.
Why leaks happen
DNS is the internet's phone book: before loading a domain you look up its IP. Normally a VPN pushes those queries into the tunnel too; leaks happen when:
- System DNS isn't hijacked: the VPN doesn't properly take over system DNS, queries still hit the ISP's resolver
- Protocol doesn't cover it: SOCKS5 handles TCP only; UDP DNS queries bypass
- IPv6 slips through: VPN covers IPv4 only; IPv6 DNS rides the default NIC
- Windows smart multi-homing: queries fire on all interfaces concurrently — fastest reply (usually local DNS) wins
- Browser DoH independence: the browser runs its own DoH to Cloudflare, bypassing the VPN's DNS control
How to test
- Connect the VPN/proxy
- Run the Extended Test at
ipleak.netordnsleaktest.com - Check the DNS servers listed:
- ✅ VPN/proxy DNS (Cloudflare, provider's own) = no leak
- ❌ Your local ISP's resolver = leaking
How to fix it
| Layer | Fix |
|---|---|
| VPN | Use a provider with built-in DNS hijack; enable "DNS leak protection" |
| System | Manually set NIC DNS to 1.1.1.1 / 8.8.8.8 or encrypted DNS (DoH/DoT) |
| Client | Modern clients like AirLane handle DNS inside the proxy core — Fake-IP mode keeps lookups from ever leaving the device |
| Browser | Disable standalone browser DoH (conflicts with VPN DNS) or route both through the same exit |
Fake-IP: better than fixing leaks
The classic fix routes DNS properly through the tunnel; Fake-IP goes further — the client answers with a fake IP locally and the real resolution happens on the proxy server. Your device never sends a DNS query at all, so there's nothing to leak — and DNS latency drops to zero as a bonus. Standard practice in AirLane, mihomo, and other modern proxy clients.
Related tools
- All-in-one: DNS handling built in — MirrorSpeed
- See exactly how your DNS flows: AirLane — visual DNS config + Fake-IP mode
Related: WebRTC leaks · QUIC leaks · DNS hijacking · Fake-IP mode