VPN
Photo of author

How to Test Your VPN Connection: DNS Leaks & Kill Switches

A DNS leak test checks whether your DNS queries are traveling outside your VPN‘s encrypted tunnel, potentially exposing every domain name you visit to your ISP even when you believe your connection is private.

Running a VPN does not automatically guarantee that all of your network traffic stays protected. The encrypted tunnel handles your data, but DNS lookups, the process of translating domain names into IP addresses, can slip out through the wrong path entirely.

The result is a situation where your ISP sees a complete list of every site or server you contact, while you assume your VPN is doing its job. For anyone running a home lab, archiving open-source software, pulling large datasets, or preserving public domain assets through Usenet, that silent exposure matters far more than most people realize.

This guide walks through how to run a proper dns leak test, how to interpret what you see, how to trace the root causes of unexpected results, and how to lock down your setup before moving sensitive archival work through any network connection.

How To Run A DNS Leak Test

Before reading results, it helps to know what the test is actually doing and what clean output is supposed to look like. A DNS leak test works by sending DNS queries from your browser to a controlled server, then reporting back which resolvers answered those queries and which IP addresses those resolvers belong to.

What To Do Before You Start

Preparation matters. Take these steps before visiting any test tool:

  • Connect to your VPN and confirm the client shows an active connection
  • Note your VPN provider‘s name and the country of the server you selected
  • Disable any browser extensions that modify DNS, including some ad-blockers
  • Close and reopen your browser so stale DNS cache entries do not interfere

Restarting the browser after connecting the VPN is a step many people skip. Cached DNS responses from before the tunnel was active can produce misleading results on the first run.

Using dnsleaktest.com And BrowserLeaks

Two tools we return to consistently are dnsleaktest.com and browserleaks.com.

On dnsleaktest.com, click the Extended Test button rather than the standard one. The extended test fires a larger batch of DNS queries, which increases the chance of catching intermittent leaks where your vpn dns fails only some of the time.

On browserleaks.com, the DNS section resolves 50 randomly generated domain names: 25 over IPv4 and 25 over IPv6. This dual-stack approach is important because many setups tunnel IPv4 traffic correctly but leave IPv6 dns requests running directly to the ISP.

Run both tools. Compare the resolver lists side by side.

How To Read Resolver Results

Each result shows a table of dns resolvers that answered your queries, along with their ip addresses and the organization (ASN) that owns them.

A clean result looks like this:

What You SeeWhat It Means
One resolver, VPN provider ASNFully protected
Cloudflare (1.1.1.1) or Google public dns (8.8.8.8)Protected if your VPN routes to these
Your ISP name in any rowDNS leak confirmed
Multiple resolvers, mixed ASNsLikely partial or intermittent leak

If even one row shows your ISP, treat it as a confirmed leak. A single resolver belonging to your dns provider or a trusted public dns server like Cloudflare indicates the tunnel is routing DNS correctly.

What A Leak Actually Means

DNS leaks are one of the most misunderstood privacy problems because they are completely silent. No error message appears, no connection drops, and your VPN client continues to report a healthy tunnel. The exposure happens at a layer most users never think to inspect.

What Is A DNS Leak

So what is a dns leak, precisely? When you type a domain name into a browser or an application reaches out to a remote server, your device must first resolve that name into an ip address. That resolution request is a DNS query.

Under a properly configured VPN, those dns queries travel through the encrypted tunnel to the vpn’s own dns resolver. A dns leak occurs when those queries bypass the tunnel and go directly to your ISP’s dns servers instead.

Your ISP receives a timestamped log of every domain name you looked up, even though your actual data traffic is encrypted. The destination is visible even when the content is not.

How DNS Requests Bypass The Encrypted Tunnel

Several conditions push dns traffic outside the tunnel. On Windows, a feature called Smart Multi-Homed Name Resolution sends dns queries to every available network adapter simultaneously, including adapters that are not part of the vpn connection. This is enabled by default.

Split tunneling is another common cause. When you configure a VPN to only route certain applications through the tunnel, the operating system’s dns configuration often stays on the default ISP resolver for everything else.

dns traffic can also escape through IPv6 when a VPN only encrypts IPv4. Because many modern networks carry both protocols, applications prefer IPv6 when it is available, and those queries go directly to the ISP.

Why ISP Visibility Still Matters

Some users assume ISP visibility is a minor concern if they are not doing anything sensitive. For archival work, open-source software distribution, and Usenet access, the reality is more nuanced.

ISPs in the US can retain and sell aggregated browsing data. DNS query logs provide a detailed picture of which servers you contact, when, and how frequently. For anyone relying on dns privacy as part of a broader operational security posture, a leaking resolver undermines that posture completely, regardless of what the encrypted tunnel itself is hiding.

Why Results Do Not Match Your VPN

Sometimes the VPN client says connected, the vpn dns setting appears correct, and the leak test still returns unexpected resolvers. The cause is almost always one of three configuration-layer problems that sit outside the VPN client itself.

Incorrect Network Configuration

Incorrect network configuration is the most common culprit when results do not match expectations. Operating systems maintain dns settings at multiple levels: the adapter level, the network profile level, and sometimes a policy level that overrides both.

On Windows, dns settings configured before the VPN was installed can persist in the registry even after changing the adapter settings. The VPN client pushes its own dns servers on connect, but a group policy or a hardcoded entry on a secondary adapter may still answer some queries first.

Checking dns configuration means looking at every active network adapter, not just the primary one. A Wi-Fi adapter and a virtual VPN adapter can both be active simultaneously, and dns resolvers may respond from either.

IPv6 And Dual-Stack Problems

IPv4 and ipv6 operate independently. A VPN that tunnels ipv4 traffic correctly but does not handle ipv6 creates a split situation: IPv4 queries go through the tunnel, IPv6 queries go directly to the ISP over the native connection.

The fix depends on the VPN client. Some clients offer a toggle to disable ipv6 while connected. If the client does not provide this option, disabling ipv6 on the network adapter directly in the operating system settings achieves the same result.

Never assume that an IPv4 clean result means IPv6 is also clean. Run a test tool that checks both stacks explicitly.

Browser Secure DNS Overrides

Modern browsers implement their own dns-over-https (doh) or dns-over-tls (dot) settings independently of the operating system. Chrome, Edge, and Firefox all have secure dns settings that can override whatever dns servers the VPN pushes.

When a browser uses its own doh resolver (often Cloudflare or Google, hard-coded), those queries bypass the VPN’s dns completely. This is not technically a leak to the ISP, but it does mean the dns provider handling your queries is not the one your VPN intends.

For Windows environments, Smart Multi-Homed Name Resolution compounds this further. Disabling it via Group Policy or PowerShell is necessary before other dns settings reliably take effect.

How To Fix Leaks And Prevent Them

Fixing a leak requires working through the network stack systematically rather than changing one setting and hoping for the best. The goal is to ensure all dns queries route through a single, trusted dns resolver inside the tunnel.

Choose The Right Resolver Path

The first decision is which dns resolver should handle your queries. Three reliable options exist:

  • Your VPN provider’s own dns servers, which are the most direct way to prevent dns leak exposure since they live inside the tunnel by design
  • Cloudflare (1.1.1.1), a widely trusted public dns with a no-logs policy for query data
  • Google DNS (8.8.8.8), fast and reliable, though Google retains some query metadata

Using encrypted dns (doh or dot) adds a second layer by encrypting the query itself, so even if a query travels outside the tunnel briefly, the content is not readable in transit. Enable doh at the OS level in addition to relying on the VPN.

Check Router And Device DNS Settings

Router-level dns configuration affects every device on the network simultaneously. If the router’s WAN dns setting points to an ISP server, devices that ignore the VPN’s pushed dns will fall back to that router setting.

Change the router’s upstream dns to a privacy-respecting public dns server. This also provides baseline dns privacy for devices that do not support VPN connections directly, like smart home hardware.

On each device, verify the dns settings on every active network adapter. Remove any ISP-provided dns entries and replace them with your chosen dns provider.

When To Retest After Changes

Every configuration change warrants a new test. A common mistake is changing one setting, seeing a clean result, and stopping, without realizing a different adapter or browser profile still leaks.

Retest after:

  • Any VPN client update
  • Any OS update that resets network settings
  • Switching between Wi-Fi and wired connections
  • Adding a new device to the network
  • Changing the VPN server or protocol

Running both dnsleaktest.com and browserleaks.com after each change takes under two minutes and confirms that changes held across all query paths.

Other Privacy Checks Worth Running

A clean DNS test result is necessary but not sufficient for a complete privacy posture. DNS queries are one exposure vector; browsers and active network connections introduce others that require separate verification.

WebRTC And Browser-Level Exposure

WebRTC leaks are the most commonly overlooked complement to DNS testing. Browsers use WebRTC for real-time communication features, and the protocol can expose your real ip address through a STUN server request that bypasses the VPN tunnel entirely.

A webrtc leak can reveal your true public IP even when your DNS is clean and your VPN is connected. Check for webrtc leaks using the WebRTC section on browserleaks.com or a dedicated tool like ipleak.net.

Disabling WebRTC entirely in Firefox via about:config (set media.peerconnection.enabled to false) is the most reliable fix. In Chrome and Edge, a browser extension that blocks WebRTC is required since there is no native toggle.

Kill Switch Testing During Active Transfers

A VPN kill switch is supposed to cut internet access the moment the VPN tunnel drops, preventing unprotected traffic from leaking during a reconnection. Most VPN clients claim to offer one; not all of them work reliably.

The practical test: start a file transfer or a long archival download of open-source software or public domain assets, then manually disconnect the VPN. If the transfer continues, the kill switch is not working. All traffic during that window is unprotected and visible to the ISP.

Test the kill switch periodically, not just on initial setup. VPN client updates sometimes reset or disable kill switch behavior without warning.

Ad-Blocking And DNS-Based Filtering Checks

DNS-based ad-blockers like Pi-hole or NextDNS filter traffic at the dns resolution layer. When these tools are configured on the router or device, they intercept dns requests before the VPN client does, which can produce leak-like results on test tools.

Verify that your ad-blocking dns configuration routes through the VPN rather than around it. If dns-based filtering sits upstream of the tunnel in the network stack, it may inadvertently function as a dns provider visible to external test tools, appearing as an unexpected resolver in your results.

How This Fits Into A Privacy-First Home Lab

For anyone running serious archival workflows, the dns leak test is not a one-time setup step. It belongs inside a recurring verification routine, especially when the workflows involve Usenet access, large dataset retrieval, or any research activity where query visibility creates meaningful risk.

Usenet And Archival Workflow Considerations

Usenet connections involve regular outbound connections to news servers, NZB indexers, and search tools. Each hostname lookup is a DNS query. If the resolver serving those queries belongs to an ISP, the ISP builds a log of every server contacted during an archival session.

For a home lab pulling Linux distributions, open-source software archives, or large public domain datasets through a provider like Newshosting or Easynews, Get Newshosting, the combination of SSL encryption from the provider and a verified, leak-free VPN creates the layered protection that makes those workflows meaningfully private.

Running a dns leak test before each major archival session takes under a minute and confirms the full chain is intact.

Trusted Resolver Choices For Sensitive Research

Not all public dns options carry the same privacy tradeoffs. For sensitive research workflows, the resolver choice matters alongside dns privacy practices:

  • Cloudflare (1.1.1.1): Committed to a 24-hour query data purge policy; supports doh and dot natively
  • Quad9 (9.9.9.9): Non-profit operated; strong no-logging stance; blocks known malicious domains at the resolver level
  • NextDNS: Configurable filtering with per-profile logging controls; useful for home lab environments where dns-based filtering is desirable

Resolver choices also affect exposure to man-in-the-middle attacks and dns spoofing or dns hijacking. Using encrypted dns over doh or dot means queries cannot be intercepted and modified between your device and the resolver, even on untrusted networks.

When Antidetect Browsers And Multi-Accounting Add Risk

Antidetect browsers are designed to isolate browser fingerprints for multi-accounting and research purposes. Each profile may carry its own dns settings, proxy configurations, and WebRTC handling rules.

This creates a situation where a system-level DNS test appears clean while individual antidetect browser profiles leak dns queries through their own resolvers. Each profile in these environments must be tested independently, not assumed to inherit the system VPN configuration.

For datahoarder.io readers doing technical research across multiple accounts or sessions, the same DNS verification logic applies at the profile level. A system-wide clean result does not guarantee that an isolated browser profile is not routing its queries directly to an ISP.

Frequently Asked Questions

How can I check whether my VPN is leaking DNS requests?

Visit dnsleaktest.com with your VPN connected and run the Extended Test. If any resolver in the results belongs to your ISP rather than your VPN provider or a trusted public dns service, your DNS is leaking outside the tunnel.

What should the results look like if everything is protected?

A clean result shows one resolver, or a small cluster of resolvers all belonging to the same organization, which should be your VPN provider, Cloudflare, Google DNS, or another privacy-focused dns provider you configured intentionally. No ISP name should appear anywhere in the list.

Why do some leak-check tools show my ISP even when a VPN is connected?

The most common causes are Windows Smart Multi-Homed Name Resolution sending queries to multiple adapters simultaneously, a secondary network adapter with its own ISP dns settings, or a split tunneling configuration that leaves dns on the default resolver. Each of these requires a separate fix.

How do IPv6 settings affect leak detection and privacy?

If your VPN only tunnels IPv4 traffic, ipv6 queries travel directly to your ISP over the native connection. Many DNS test tools check both stacks separately. Disabling ipv6 on the network adapter while connected to the VPN eliminates this exposure.

Can WebRTC expose my real IP address even if DNS is secure?

Yes. WebRTC uses a STUN-based mechanism that can reveal your true public IP address independently of both your VPN tunnel and your DNS configuration. Disabling WebRTC in your browser or using a blocking extension is a separate step from DNS leak testing.

Which online tools are the most reliable for verifying leaks in a browser?

dnsleaktest.com and browserleaks.com are the two tools we rely on most consistently. Running both together provides broader coverage because browserleaks checks WebRTC exposure alongside DNS, while dnsleaktest.com offers a more detailed extended test focused specifically on resolvers.

About the Author

Don is a tech enthusiast with a passion for datahoarding, privacy, and security. He has been involved in technology for over a decade, working in various roles such as a desktop support engineer, network administrator, and IT consultant. Don's extensive experience in the tech industry has given him a deep understanding of how technology works and how to use it to its fullest potential.

Don is particularly interested in topics such as VPNs, privacy and IRC, which are all related to data privacy and security. He believes that protecting our digital privacy is essential, especially in today's world where data breaches and cyber attacks are becoming more common. Don has dedicated himself to educating himself and others on how to protect their digital privacy and stay safe online.

In addition to his tech expertise, Don is also an avid gamer. He enjoys playing video games in his free time, and is also a family man who enjoys spending time with his wife and children. He believes that technology should enhance our lives and bring us closer together, and he strives to promote this message through his work.