AirLane
Back to blog
privacy

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?

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.


In this guide — What Is a DNS Leak and How Can You Preve…

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

DNS leak paths: web traffic encrypted through the tunnel while DNS queries go plaintext to the ISP; after the fix, DNS resolves at the tunnel exit

How to test

  1. Connect the VPN/proxy
  2. Run the Extended Test at ipleak.net or dnsleaktest.com
  3. Check the DNS servers listed:
    • ✅ VPN/proxy DNS (Cloudflare, provider's own) = no leak
    • ❌ Your local ISP's resolver = leaking

How to fix it

LayerFix
VPNUse a provider with built-in DNS hijack; enable "DNS leak protection"
SystemManually set NIC DNS to 1.1.1.1 / 8.8.8.8 or encrypted DNS (DoH/DoT)
ClientModern clients like AirLane handle DNS inside the proxy core — Fake-IP mode keeps lookups from ever leaving the device
BrowserDisable 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