DNS Leaks and VPN Kill Switches: A Practical Leak-Test and Troubleshooting Guide
DNS leaksVPN kill switchWebRTCIPv6privacy testing

DNS Leaks and VPN Kill Switches: A Practical Leak-Test and Troubleshooting Guide

AAnyConnect Editorial Team
2026-12-01
7 min read

Learn how to test DNS, IPv6 and WebRTC leaks, verify a VPN kill switch and troubleshoot privacy gaps across desktop and mobile.

A VPN should route your traffic through its encrypted tunnel, but privacy can be weakened if DNS requests, IPv6 traffic, browser features or connection-drop behavior bypass that tunnel. This practical checklist explains how to test for common VPN leaks, what a kill switch actually does, how to interpret results and which settings to check on desktop and mobile devices.

Overview

A VPN normally creates an encrypted connection between your device and a VPN server. Websites and online services should see the VPN server’s public IP address rather than the address assigned by your internet provider. Your device should also send DNS requests through the VPN connection, so your provider or another network operator cannot easily observe which domain names your device is resolving.

That protection depends on the VPN app, operating system, browser and network working as expected. A DNS leak occurs when domain-name lookups use a resolver outside the VPN tunnel. An IPv6 leak can occur when IPv6 traffic is available but the VPN handles only IPv4. A WebRTC leak is a browser-related exposure in which real-time communication features may reveal network addresses to a webpage. A connection-drop leak happens when the VPN disconnects and ordinary internet traffic continues before the tunnel is restored.

A VPN kill switch is designed to address the last scenario. When enabled, it blocks some or all internet traffic if the VPN tunnel is unavailable. The exact behavior varies: some apps offer a system-wide block, while others limit the feature to selected applications or work only while the VPN app is connected. A kill switch reduces accidental exposure, but it does not replace DNS, IPv6 and browser testing.

CheckWhat it testsPossible warning sign
Public IPWhether websites see the VPN server or your normal connectionYour usual ISP or home-network address appears
DNSWhich resolvers handle domain lookupsYour ISP, employer or an unexpected resolver appears
IPv6Whether IPv6 traffic follows the VPN tunnelYour normal IPv6 address is visible while connected
WebRTCAddresses exposed by browser real-time communicationA local or public address appears unexpectedly
Kill switchWhether traffic stops when the tunnel dropsWeb pages continue loading during a forced disconnect

Checklist by scenario

Before the first test

  1. Record your baseline. Disconnect the VPN and note the public IP address, visible DNS resolvers and whether your network has IPv6. Use a reputable leak-testing page or your own network tools, and avoid entering personal information into an unfamiliar test site.
  2. Close sensitive applications. Pause file synchronisation, email, messaging and other services that may reconnect during testing. This prevents a test from creating avoidable account or data exposure.
  3. Check the VPN app’s settings. Look for terms such as kill switch, network lock, block internet when disconnected, DNS leak protection, IPv6 leak protection and split tunnelling. Record the current state before changing anything.
  4. Connect to a VPN server and wait for the app to confirm the tunnel is active. Do not assume that a changed app status alone proves that all device traffic is protected.

Testing DNS and IP exposure

  1. Run a public IP check while connected. The result should generally correspond to the VPN server or VPN provider’s network, not your normal broadband or mobile connection.
  2. Run a DNS leak test. A result can list several resolvers, and their location may not match the VPN server’s location. The key question is whether unexpected resolvers, particularly those associated with your ordinary internet provider or a managed network, appear while the VPN is active.
  3. Repeat the check after changing VPN servers and after switching between Wi-Fi and mobile data. A configuration can behave differently across networks, protocols or server locations.
  4. Run an IPv6 leak test if your device and network support IPv6. If the VPN does not support IPv6 routing, its app may need to block IPv6 while connected. Do not manually disable network features on a managed device without understanding the effect on other services.

Testing WebRTC in the browser

Use a WebRTC leak test in the browser you normally use. Compare the addresses shown with your baseline. A local address may reveal information about the device or local network rather than your public location, while a public address that belongs to your ordinary connection deserves closer attention.

Browser privacy controls, extensions and enterprise policies can change WebRTC behavior. Test each browser that matters to you, particularly if you use one browser for work and another for personal activity. Browser protection is separate from the VPN tunnel, so a positive VPN test does not automatically prove that every browser API is private.

Testing the kill switch

  1. Save your work and close applications that could lose unsaved data.
  2. Connect the VPN and open a simple webpage or continuous network check.
  3. Use the VPN app’s disconnect control first. Confirm whether the internet stops immediately or whether traffic continues.
  4. Reconnect, then test a less orderly failure: temporarily disable the network adapter, switch Wi-Fi networks, or otherwise interrupt the connection using a safe method appropriate to your device.
  5. Check whether traffic resumes only after the VPN tunnel is restored. If the app has separate modes, test the mode you intend to use in daily work.

Do not repeatedly force failures while transferring important files or using services that may treat an abrupt network change as suspicious. On phones, test both Wi-Fi and mobile data. Mobile operating systems may display a VPN icon while individual app exclusions, battery controls or always-on settings still affect traffic.

What to double-check

Split tunnelling and exclusions

Split tunnelling intentionally sends selected apps or destinations outside the VPN. That can be useful for local devices, banking services or work applications, but excluded traffic will not receive the VPN’s IP masking or tunnel routing. Review both included and excluded lists after app updates. For sensitive browsing, use a full-tunnel profile unless you have a documented reason to bypass it.

DNS settings and encrypted DNS

Operating-system DNS settings, browser encrypted-DNS settings and VPN DNS controls can interact. A browser may use its own DNS-over-HTTPS service, while other applications use the VPN-provided resolver. That is not automatically a leak, but it may not match your intended privacy model. Decide whether DNS should be handled by the VPN, the operating system or a separately trusted service, then test the configuration you actually use.

Protocols, IPv6 and network changes

VPN protocols can behave differently during roaming, sleep and reconnection. Check what happens when a laptop wakes from sleep, when a phone moves from Wi-Fi to mobile data and when a device changes networks. If IPv6 is unsupported or inconsistently routed, confirm that the app blocks it rather than silently allowing it outside the tunnel.

Provider documentation and privacy claims

A clean leak test does not prove that a provider keeps no logs or that its infrastructure meets every security requirement. Treat routing tests, technical controls and privacy-policy review as separate checks. For a structured review of no-logs language, see this VPN privacy policy audit and scorecard. If you need broader network coverage, compare an app with a router deployment using this home-network guide.

Common mistakes

  • Testing only once: A single result covers one device, browser, network and VPN configuration. Repeat after meaningful changes.
  • Confusing a different DNS location with a leak: VPN resolvers may appear in a location that differs from the selected server. Investigate the resolver owner and compare it with your expected setup.
  • Assuming a kill switch is universal: Some controls protect only selected apps or work only after the VPN has connected. Read the app’s description and test the exact mode enabled.
  • Ignoring browser extensions: A VPN does not stop every tracking method, fingerprinting technique or browser API. Review browser privacy settings separately.
  • Using split tunnelling without documenting it: Exclusions can be forgotten and may expose traffic deliberately or accidentally.
  • Testing through a corporate network without permission: Network changes and forced disconnects can violate workplace controls. Coordinate with an administrator on managed equipment.

If a test fails, first update the VPN app and operating system where appropriate, reconnect, and repeat the test. Then check DNS and IPv6 protection, disable unneeded split tunnelling, review browser settings and test another VPN protocol if the app provides one. Persistent problems may indicate that the provider does not support a required feature on your device. For remote server access, compare a VPN with a hardened bastion design in this SSH bastion host versus VPN guide.

When to revisit

Keep a short record of the device, operating system, browser, VPN app version, protocol, network type and test result. Revisit the checklist after installing or replacing a VPN, changing protocol or server settings, enabling split tunnelling, updating the operating system or browser, and moving between home, office, hotel and public Wi-Fi.

For routine maintenance, repeat a basic IP, DNS and kill-switch check at a sensible interval for your risk level. Run the full WebRTC and IPv6 checks before handling especially sensitive work or after a major browser or network change. If a VPN provider changes its app controls or documentation, retest rather than relying on an old result. The practical final checklist is: record a baseline, connect, test IP and DNS, check IPv6, test WebRTC in each important browser, verify the kill switch on Wi-Fi and mobile data, review exclusions, and document the outcome. This turns a one-time installation check into a repeatable privacy control.

Related Topics

#DNS leaks#VPN kill switch#WebRTC#IPv6#privacy testing
A

AnyConnect Editorial Team

Cybersecurity Editors

Senior editor and content strategist. Writing about technology, design, and the future of digital media. Follow along for deep dives into the industry's moving parts.