Launching soonSpicaVPN is launching soon. Get early access.Join the waitlist →
Networking: DNS, IPv6, leaks and kill switch

What Is a DNS Leak?

A DNS leak happens when a device sends website-name lookup requests outside its VPN tunnel. Learn what that can expose, how to check DNS routing, and why a test result needs context.

A DNS leak happens when a device sends DNS requests outside the encrypted tunnel of a VPN. DNS, or the Domain Name System, looks up a human-readable name such as example.com and returns an IP address that devices use to reach it. If a lookup goes to an internet provider’s DNS server instead of through the VPN, that provider may be able to see the domain being looked up even while the VPN appears connected.

What does a DNS leak mean?

When you enter a website name, your device needs an IP address to contact the right destination. It asks a DNS resolver to look up the name. A resolver is a service that answers these lookup requests. Cloudflare’s DNS concepts guide describes DNS as translating human-readable domain names into IP addresses.

When a VPN is in use, its tunnel is intended to carry the device’s internet traffic, including DNS requests. A leak occurs if a DNS request takes a route outside that tunnel. For example, the request might reach a DNS server operated by the internet service provider (ISP), rather than being carried through the VPN connection. The ISP or other DNS provider handling the request may then see the domain name being looked up.

This is different from saying that every part of a connection has failed. A DNS leak concerns the route taken by DNS lookups. It does not establish, on its own, what happened to every other type of traffic. Nor does seeing a VPN connection indicator confirm which DNS resolver handled a particular request.

The flow below shows the key difference: a lookup can travel inside the VPN tunnel or take a route outside it.

Where a DNS lookup can go
Where a DNS lookup can goDevice → DNS resolver; Device → ISP DNS resolverThrough the VPNOutside the VPN tunnelDeviceDNS resolverDeviceISP DNS resolverVia tunnelOutside tunnel
  1. Through the VPN: Device → Outside the VPN tunnel: DNS resolver (Via tunnel)
  2. Through the VPN: Device → Outside the VPN tunnel: ISP DNS resolver (Outside tunnel)

The route of the DNS request is what matters when checking for a leak.

The diagram contrasts an in-tunnel lookup with one that reaches an ISP resolver outside the tunnel. The resolver’s identity alone is not enough to tell you which route the request took.

What can a DNS leak expose?

A DNS request contains the domain name being looked up. If the request reaches a provider outside the VPN tunnel, that provider may be able to see the domain involved in the lookup. That can reveal something about the websites a person is trying to reach, even if other traffic is still using the VPN.

Be precise about what this means: a DNS leak is an exposure of DNS requests, not proof that every detail of a browsing session has been disclosed. The exact information visible depends on what requests were sent and which service handled them. Avoid treating a DNS leak as either harmless by definition or proof that all online activity was exposed.

There is also a useful distinction between a request going outside the VPN tunnel and a request going through the tunnel to a DNS provider other than the VPN provider. The latter may matter to someone choosing which provider handles DNS, but it is not automatically evidence that the ISP received the request. ExpressVPN notes that browser DNS-over-HTTPS settings can send requests to another provider while the requests still travel through the VPN tunnel.

Why can DNS requests take a different route?

There is more than one possible cause, and the relevant settings differ between devices and apps. Fortinet describes misconfiguration as one possible reason: a VPN connection may use an ISP DNS server. It also notes that a VPN’s handling of IPv6 can matter. IPv6 is a version of the Internet Protocol used to address and route traffic; if a VPN does not handle IPv6 while the network supports it, DNS requests may bypass the tunnel.

A connection can also drop unexpectedly. If the VPN disconnects and the device sends requests over its ordinary connection before the VPN reconnects, those requests may not use the tunnel. A kill switch is a setting intended to block traffic when a VPN disconnects; the precise behavior depends on the app and device. It can reduce the chance of traffic going out during a disconnection, but the sources do not establish that every kill switch handles DNS the same way.

Other software and browser settings can affect the result too. ExpressVPN describes antivirus or security-app DNS filtering as one possible reason a device may use a different DNS server. It also explains that a browser’s DNS-over-HTTPS setting—sometimes called “secure DNS”—can send lookups to another provider. In that example, the request still travels through the VPN tunnel, so the different provider in a test does not necessarily mean the ISP saw it.

These examples show why the words “different DNS provider” and “DNS leak” should not be used as if they always mean the same thing.

  • A VPN setting may direct DNS requests to an ISP resolver.
  • IPv6 traffic may take a different route if the VPN does not handle it.
  • A VPN disconnection may leave a short period when ordinary network routing is used.
  • Browser secure-DNS settings may use another resolver through the VPN tunnel.
  • Security software may alter which DNS server the device uses.

The list covers distinct possibilities, not a checklist proving that any one of them is happening on a particular device. The settings and their effects can vary, so a result should be checked in context.

How can you check for a DNS leak?

A DNS leak test reports which DNS servers handle test lookups. A comparison before and after connecting to a VPN can help show whether the resolver changed. A test is a check of those requests in that browser and at that time; it is not a guarantee about every app, network or later connection.

ExpressVPN’s guide recommends using the same browser for the comparison because browser DNS settings can affect the result. Its instructions use the provider’s own test, but the general idea is to note the resolver before connecting, connect the VPN, then refresh the test and examine the results. The steps below describe that comparison without assuming that a particular test service or app is suitable for every reader.

Compare DNS test results

  1. Check without the VPN

    In the browser you normally use, run a DNS leak test and note the DNS server addresses and providers it reports.

  2. Connect to the VPN

    Wait until the VPN app indicates that it is connected.

  3. Repeat in the same browser

    Refresh the test page and compare the DNS server information with your first result.

  4. Look at the provider and the route

    If a provider other than the one you expected appears, check browser secure-DNS and security-app settings before concluding that the request bypassed the tunnel.

The sequence compares the test’s reported DNS servers before and after connection. If the result is unclear, it is a reason to investigate the relevant settings, not by itself a complete diagnosis of the route.

What should you check if the result looks unexpected?

Start with the settings that could explain the result, and change one thing at a time. That makes it easier to see whether a particular setting changed what the test reports. The checks below are general areas to examine, not platform-specific instructions.

  • Check whether the browser has a secure-DNS or DNS-over-HTTPS setting that selects another provider.
  • Check whether antivirus or other security software includes DNS or web filtering.
  • Review the VPN app’s DNS and IPv6 handling information for your device.
  • Consider whether the VPN disconnected or the device changed networks while the test was running.
  • Repeat the comparison in the same browser after changing one relevant setting.

These checks reflect causes described in the Fortinet DNS leak overview and the ExpressVPN guide. The exact controls and steps are device- and app-specific; avoid changing network settings based on a generic instruction that has not been checked for your platform.

If a test repeatedly shows an unexpected resolver, use the support guidance for the VPN app and operating system you actually use. The available sources describe possible fixes, but they do not establish one setting that resolves every DNS-routing issue.

Does a different DNS provider always mean a leak?

No. A test may report a provider other than the VPN provider because the browser sends DNS requests to a separate resolver. If those requests still travel through the VPN tunnel, the result does not show that the ISP handled them. The important question is whether the request went outside the tunnel, not only which provider name appears.

Does a kill switch prevent DNS leaks?

A kill switch can block traffic when a VPN disconnects, which may help prevent requests from using the ordinary connection during that interruption. Its behavior varies by app and operating system, so check the documentation for the specific VPN and device. Do not assume that one kill-switch setting blocks every kind of traffic in every situation.

Can IPv6 cause a DNS leak?

It can be one possible cause. Fortinet notes that if a VPN does not support IPv6 while the network uses it, DNS requests may go outside the VPN tunnel. Check the VPN’s documentation for its IPv6 behavior rather than assuming that disabling IPv6 is the right fix for every device.

What is the key point to remember?

A DNS leak is a routing problem: a DNS lookup goes outside the VPN tunnel. DNS lookups translate website names into addresses, and a provider that receives them may see the domains being requested. Testing can help identify which resolver handled requests, but the result needs context—especially when browser settings or security software use a different DNS provider. Check the relevant app and device settings before treating a provider name as proof of a leak.

Be among the first to try SpicaVPN.

Free private beta, by invitation. No payment details needed.