A DNS leak happens when your device sends DNS lookups outside the VPN tunnel — revealing which sites you are visiting even though the traffic itself is encrypted.
Explanation
DNS is how your device converts "youtube.com" into an IP address to connect to. If your VPN client is configured to route only HTTP/HTTPS traffic through the tunnel and lets DNS resolve via your ISP, then your ISP sees every domain you look up — a serious leak of what you thought was private. Good VPN clients route DNS through the tunnel by default. Test for DNS leaks with dnsleaktest.com. Web proxies are less prone to this problem because DNS for the destination is resolved by the proxy server, not your device — but your local network still sees a DNS lookup for the proxy domain itself (that is expected and unavoidable).
Related terms