DNS leak
- DNS request leak
- VPNL-G-002
- Leaks
- Version 1.1
- Updated
Definition
A DNS leak is a failure in which a device sends Domain Name System (DNS) queries outside the VPN tunnel — usually to the resolver of the local network or internet provider — revealing which domains the user visits although other traffic is encrypted.
DNS leak explained
Before a browser or app can connect to a host name, it asks a DNS resolver for the matching IP address. Classic DNS, specified in RFC 1035, is unencrypted and normally travels over UDP port 53, so anyone on the network path can read the names being looked up. While a VPN is active, these queries should pass through the tunnel to a resolver operated or chosen by the VPN provider.
Leaks have several causes. The operating system may keep using the resolver configured on the physical interface; a race during connection, reconnection or a network change may let queries escape before the tunnel’s routes and firewall rules are in place; the client may protect IPv4 while queries go out over IPv6 (see IPv6 leak); or an application may use its own resolver, for example DNS over HTTPS configured in a browser. On Windows, the operating system’s habit of sending queries to resolvers on several interfaces in parallel has historically been a frequent cause.
A DNS leak does not expose the content of the pages visited, but it reveals browsing destinations and identifies the user’s real network to the resolver operator. An encrypted query sent to a third-party resolver outside the tunnel is still a leak in VPN Labs’ classification, because it bypasses the path the user chose; it is reported separately from cleartext leaks because the exposure differs.
How VPN Labs tests it
VPN Labs captures traffic on the test device’s physical interface and on an upstream mirror port while the client is connected, then filters the capture for any DNS traffic — UDP and TCP port 53, DNS over TLS on port 853 and connections to known DNS-over-HTTPS endpoints — that is not encapsulated in the tunnel.
Scenarios include steady state, connection start, server switch, network change and sleep/resume, each repeated several times. The number of runs, tool versions and client versions are stated in the environment section of every record.
The methodology pages are the authoritative description of each procedure; this summary is for orientation.
Research on this topic
VPN Labs publications that discuss DNS leak in depth.
-
VPNL-R-2026-001
How DNS leaks happen in VPN clients: a technical taxonomy
A DNS leak occurs when name-resolution traffic leaves a device outside the VPN tunnel, or reaches a resolver the VPN did not designate, while the tunnel is meant to be…
Read the publication -
VPNL-R-2026-005
IPv6 and WebRTC: the overlooked leak paths
IPv6 and WebRTC are the two leak paths most often missed in VPN testing. On dual-stack networks a tunnel that carries only IPv4 leaves IPv6 traffic, and the…
Read the publication -
VPNL-R-2026-003
Kill switches compared: firewall-based vs route-based enforcement
A VPN kill switch stops traffic leaving outside the tunnel while the tunnel is unavailable. Firewall-based designs use default-deny filters that outlive tunnel…
Read the publication
Standards and references
Cite this definition
VPN Network Research Labs. (2026). DNS leak. VPN Labs Glossary. https://vpn.com.de/glossary/dns-leak
Glossary v1.1 · term ID VPNL-G-002 · last updated . The definition may be quoted with attribution; report errors under the corrections policy.
Related terms
Concepts that are tested, reported or cited together with DNS leak.