On this page

Summary: A VPN DNS leak happens when your device sends domain-name lookups outside the DNS path your VPN is supposed to protect, often to your ISP's or local network's resolver while other traffic still uses the tunnel. With plain-text DNS, the resolver and anyone able to observe that path can read the names you looked up. Encrypted DNS can also bypass the tunnel, but it conceals the queried names from passive observers along the path, not from the resolver itself. A leak is a gap in what the VPN hides, not a failure of the whole VPN, and not every lookup that bypasses your VPN provider's own resolver counts as one.

VPN Advisors is an independent, affiliate-supported website that explains how VPNs work, what they protect, and how to evaluate VPN services. This article explains what a DNS leak is, why domain lookups may travel outside the VPN tunnel, and what that can reveal about your activity. For a broader look at VPN leak protection and other connection features, see our VPN Protection Features guide.

What counts as a DNS leak

A DNS leak is a DNS lookup that travels outside the path your VPN configuration intends and reaches a resolver or network you meant to keep out of the picture.

To find a site's IP address, your device often asks a server called a recursive resolver to translate a name, such as www.example.com. The IETF's DNS privacy analysis, RFC 9076, notes that almost every internet activity starts with one or more of these queries. Without a VPN, the resolver is normally whichever one your network assigns automatically, which for most home connections means your ISP's.

A full-tunnel VPN is supposed to change that. When a Windows VPN client connects, it is assigned an address and can also be handed DNS server addresses to use. On Apple platforms, when the VPN tunnel becomes the default route, the VPN's DNS servers become the default resolver. In the intended setup, lookups travel through the encrypted tunnel to a resolver the VPN chose.

The important detail is that DNS is a separate flow from the traffic it prepares. RFC 9076 points out that DNS traffic may take a different path than the communication between you and the site. That is why a VPN can carry your web traffic correctly while your lookups go somewhere else.

intended DNS path vs. leak path · same device, same VPN

intended DNS path vs. leak path · same device, same VPN

In a leak, the encrypted tunnel can still be working; only the lookups take the route outside it.

Two conditions define the classic unintended DNS leak in a full-tunnel VPN:

  • It leaves outside the tunnel. The query goes out on your physical network connection, such as Wi-Fi or Ethernet, instead of through the VPN interface.
  • It reaches an observer the VPN was meant to exclude. Typically that is your ISP's resolver or the resolver of the local network you are on.

How lookups end up outside the tunnel

DNS leaks can arise when the operating system or an app chooses a DNS route outside the VPN, even while the tunnel itself remains connected. A connected VPN adds a network interface; it does not automatically become the only place DNS queries can go.

The operating system picks among several interfaces

When a device has both a VPN interface and a physical one, its DNS client has rules for deciding where each query goes. Those rules differ by platform, and some of them can send queries to the physical network's resolver.

  • Windows. Microsoft's documentation describes the order: Windows checks its Name Resolution Policy Table (NRPT), then sends the query to the preferred interface based on interface metric. If that query times out, DNS queries are sent on all interfaces. Windows also has a feature called smart multi-homed name resolution, which Microsoft's DNS Client policy text describes as issuing parallel queries across all networks to speed up name resolution.
  • Linux with systemd-resolved. A query that matches no configured routing domain is sent to all DNS servers on links with the DefaultRoute= option set. Unless the VPN interface is configured to claim all names, the physical link's resolver can receive queries too.

The VPN client does not enforce the DNS path

Pushing a DNS server address to the device is not the same as preventing other DNS traffic. OpenVPN added a Windows-only option, --block-outside-dns, because the platform needed it: the option blocks DNS servers on other network adapters using the Windows Filtering Platform. It targets conventional DNS over TCP or UDP port 53, not every encrypted-DNS connection. That such a control exists for one operating system and not others shows that leak protection is a per-platform implementation, not a property of the VPN protocol.

Poorly built clients may not route DNS through the tunnel at all. A 2016 study, presented at the ACM Internet Measurement Conference, identified 283 Android apps using the VPN permission and ran network tests on 150 of them. Of the tested apps, 66% sent DNS traffic outside the VPN tunnel. That figure describes Android VPN apps at the time of the study, not today's market or any specific provider.

Apps can bring their own resolver

Not every lookup goes through the operating system. RFC 9076 notes that a growing number of applications offer their own encrypted DNS settings instead of using the system resolver. Browsers are the main example. Whether an app's DNS requests bypass the VPN depends on where they are routed. Encryption determines what observers along that route can read, as the next section explains.

A dropped tunnel is a separate cause. If the VPN connection fails, the device can fall back to its normal network settings, including DNS. A kill switch is intended to block traffic during a VPN disconnection, but its actual coverage depends on the implementation. That differs from DNS leak protection while the tunnel remains connected.

When DNS outside the provider's resolver is not a leak

The useful test is not whether a lookup skipped your VPN provider's resolver, but whether it followed the route you intended and which observers could read the DNS question. A third-party resolver reached inside the tunnel is not automatically a leak. An encrypted lookup sent outside the tunnel is a DNS-path bypass, but it does not expose the question to the local network in plain text.

When DNS outside the provider's resolver is not a leak
Situation Where the lookup travels Who can read the domain names Is it a leak?
Full-tunnel VPN using the VPN's resolver Inside the tunnel The VPN's resolver No. This is the intended path
Plain-text lookup sent to the ISP or local resolver Outside the tunnel, on the physical network The ISP or local network's resolver, plus anyone on that path Yes. This is the classic DNS leak
Third-party resolver reached through the tunnel Inside the tunnel, then onward from the VPN server That resolver's operator Not a leak to your ISP; it shifts trust to a different resolver
Encrypted DNS (DoH or DoT) sent outside the tunnel Outside the tunnel, encrypted The encrypted-DNS resolver's operator; passive observers along the path cannot read the DNS question An unintended DNS-path bypass if a full tunnel was expected, but not a plain-text DNS leak to the local network
Split DNS configured on purpose Listed domains via the VPN, other names locally The VPN's resolver for listed domains; the local resolver for the rest Intended by design, but unlisted names are visible locally

Split DNS by design

Many VPNs, especially corporate ones, send only certain domains to the VPN's resolver. Windows does this through NRPT rules that match a full name or a domain suffix. On Apple platforms, a VPN can limit its DNS settings to a list of match domains; in a split-tunnel setup, other lookups use the normal resolver. That behavior is configured, not accidental. Whether it is acceptable depends on what the user expected the VPN to cover.

A different resolver is not automatically a leak

If your VPN app, or you, sets a third-party resolver and the queries travel through the tunnel, your ISP does not see them. The resolver's operator does. RFC 9076 is blunt on that point: your recursive resolver knows a lot about you. Choosing it is a trust decision, not a leak.

Encrypted DNS changes what the network sees

DNS over HTTPS (DoH) and DNS over TLS (DoT) encrypt the query between your device and the resolver. According to RFC 9076, encrypted transport shields the query's contents from passive eavesdroppers on the wire, though traffic analysis of sizes and timing remains possible. It does not reduce what the resolver itself receives. So an encrypted lookup that leaves outside the tunnel exposes far less to your local network than a plain-text one, yet it still bypasses the VPN and reveals the names to the encrypted-DNS provider.

Browsers handle this interaction differently. On Windows, Firefox in its default protection mode does not automatically use DNS over HTTPS when it detects a VPN, proxy, or NRPT. Explicitly selecting a stronger or custom DoH protection level can change that behavior. Encrypted DNS and VPN DNS handling are separate mechanisms, and one does not substitute for the other.

Why leak results can look confusing

Resolvers often forward queries to other resolvers, and authoritative servers see the address of the resolver that contacted them, not your device. As a result, the resolver identified by a leak check can be an upstream service your VPN provider uses, not one your device contacted directly. The meaningful questions are whether the lookup took an unintended route and who handled it, not whether a displayed resolver name matches your VPN brand. A leak-test page can identify resolvers or upstream services associated with its test queries, but it cannot prove that every app and DNS transport on your device stays inside the tunnel.

Who sees leaked lookups, and what they learn

In a plain-text DNS leak, the resolver and observers along the path can associate the domain name you requested with the source address visible at their point on the network. That may be your device's local address on Wi-Fi or a router's public address farther upstream. It does not show page addresses, page content, or what you did on a site.

The observers

  • The resolver operator. On most home connections, the router passes queries to the ISP's recursive resolvers, so a leak usually lands with your ISP. On public or workplace Wi-Fi, it may land with that network's resolver.
  • Anyone on the path to that resolver. A plain-text DNS query can be read in transit like any other unencrypted traffic. RFC 9076 identifies the stretch between your device and the recursive resolver as the most useful place to watch, because no caching filters the traffic there.
  • Not, typically, the websites you visit. Authoritative name servers normally see the resolver's address rather than yours. The exception is the EDNS Client Subnet option, which can pass on your IP address or prefix when a resolver uses it.

What a lookup reveals

A DNS lookup can expose two privacy-sensitive details: the queried name inside the DNS message and the source IP address visible on the network path. A router or other intermediary can change which source address later observers see. The name alone can be sensitive. RFC 9076's own example is that an addiction-support organization's website is public, but the fact that a particular person visits it should not be.

A plain-text DNS leak can expose lookups to tampering, not just observation. An attacker who controls an unencrypted DNS path can monitor queries and substitute their own answers, which can send you to the wrong server.

What it does not reveal

What it does not reveal
A plain-text DNS leak can expose It does not expose
The domain name, such as www.example.com The full URL path, such as a specific article or search
The source IP address visible at that point in the network, possibly a device or gateway address Page content, messages, or files from the DNS lookup alone
When the lookup happened What you typed, bought, or did on the site

A DNS log is not an exact browsing history

DNS records are both noisier and less complete than a list of sites you chose to visit:

  • Noisier. One web page can trigger dozens of lookups for embedded content, and browsers also look up names for prefetching and address-bar autocomplete, including sites you never opened.
  • Less complete. Devices and browsers cache answers, so repeat visits may produce no new query for the resolver to see.

That does not make the data harmless. RFC 9076 notes that analysis techniques can extract the meaningful requests from the noise, and cites research showing users can be re-identified from their pattern of DNS queries alone. The accurate claim is that a DNS leak reveals which names your connection resolved, not that it reveals everything you did online.

Why a DNS leak matters

A DNS leak matters because it can give your ISP or local network operator a useful record of the domain names your connection resolves, even when other traffic goes through the VPN tunnel. With plain-text leaked DNS, those names can be associated with the device or network address visible to the observer.

The effect is a weakest-link problem. RFC 9076 observes that as other protocols become encrypted, plain-text DNS can end up as the least protected part of an otherwise encrypted connection. A VPN that encrypts everything except DNS leaves that link in place.

It also matters because leak protection is not one universal property. As the mechanisms above show, the outcome depends on:

  • The operating system, including how it orders, parallelizes, or falls back between interfaces.
  • The VPN client, including whether it blocks DNS outside the tunnel on that specific platform.
  • The apps involved, including browsers that may use their own resolver or encrypted DNS.
  • The configuration, including split DNS or split tunneling set on purpose.

A provider's claim of DNS leak protection is therefore a claim about its own clients on the platforms it supports. It does not transfer automatically to another device, another app's resolver, or a manually configured connection.

A DNS leak is also only one way a VPN connection can expose information. IPv6 traffic, WebRTC, tunnel drops, and split tunneling can create different kinds of exposure and are worth evaluating separately rather than folding into a single "leak" label.