Concepts / VPNs

VPNs

DNS leak

Also called dns privacy

Lookups leaving outside a VPN tunnel, telling the local network every name you visit.

The pages go through the tunnel, the lookups do not
The pages go through the tunnel, the lookups do not

With a DNS leak the VPN hides the traffic but the device still asks the local network's resolver, which learns every name. The fix is a resolver reachable only through the tunnel.

A DNS leak is name lookups leaving outside a VPN tunnel, so the local network learns every name you visit although it cannot read the traffic. It happens when the device keeps using the local network's resolver. VPN clients close it by setting a resolver reachable only through the tunnel. dig example.com shows which resolver answered (the SERVER line). Encrypted DNS (DoH, DoT) protects lookups even without a VPN.

See it on real machines

Read next

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Sign in with Google or email to start.

Start this lab