Byte Bound Report

Test VPN for DNS Leak & IP Leak: Complete Detection Guide

Test VPN for DNS Leak & IP Leak: Complete Detection Guide

What Is a DNS Leak?

A DNS leak occurs when DNS requests are accidentally sent to an ISP's default servers instead of via an encrypted VPN service. When you visit a website, your device sends a DNS query to translate the domain name into an IP address. ISPs can easily monitor the sites you visit through these queries.

A VPN should prevent this by routing those queries through its own encrypted servers. But when a DNS leak occurs, it exposes the domain names of the sites you visit. Your IP address remains hidden from websites (the VPN is working correctly there), but your ISP can still see the exact list of every domain you looked up in real time. For someone using a VPN specifically to keep their ISP from tracking their browsing habits, a DNS leak defeats the entire purpose without any visible warning sign.

What Is an IP Leak?

An IP address leak is the accidental exposure of your real IP address to third parties, including websites, internet service providers (ISPs), and advertisers, even though you're using a VPN to hide it. These parties should see the IP address provided by your VPN, but instead, your real IP address is exposed.

An IP leak occurs when your VPN fails to mask your real public IP address with one of its own. It's a serious privacy risk, as any websites you visit will be able to see your true location and potentially identify you. Unlike DNS leaks, which are relatively common, IP leaks are actually the least common leak type, as most modern VPNs handle basic IP masking well.

Why These Leaks Happen

DNS leaks occur due to incorrect network configurations, VPN malfunctions, and problems with IPv6 compatibility. The most common culprit is IPv6. If your VPN doesn't support or properly block IPv6 traffic, your device may send DNS queries over IPv6 directly to your ISP, even while your IPv4 traffic is safely inside the VPN tunnel.

On Windows specifically, the problem is systemic. Windows' Smart Multi-Homed Name Resolution feature sends queries to multiple resolvers simultaneously and uses whichever responds first. Certain applications can also bypass the system resolver entirely.

If your VPN drops for even a moment, most systems will instantly fall back to using your ISP's DNS servers. Browser configurations can also cause problems—some browsers may be configured to use their own DNS servers instead of those provided by the VPN.

IP leaks stem from VPN connection drops due to network instability, server issues, or software bugs. During these brief moments, your internet traffic may revert to your normal unprotected connection, exposing your real IP address. IPv6 leaks are also common since most VPNs do not recognize IPv6, masking only IPv4 while leaving IPv6 addresses exposed.

How to Test for DNS and IP Leaks

Testing your VPN is straightforward. Most comprehensive tests run all three checks simultaneously and give you a verdict in under 30 seconds. Before testing, record your baseline values: your public IPv4 address, your public IPv6 address (if shown), the DNS server addresses displayed, and your geographic location as reported by the site.

Step-by-Step Testing Process

Testing your IP address:

  1. Switch your VPN off
  2. Go to whatismyipaddress.com and note your public IP address
  3. Switch your VPN on and connect to a server
  4. Re-check your IP address

The address should be different and display the new address assigned to you by your VPN. If you're still seeing your original IP address, you're experiencing an IP address leak.

Testing your DNS:

If the VPN is working correctly, the DNS servers should no longer be associated with your ISP. They will either belong to the VPN provider or to a trusted third-party resolver. Seeing your ISP's DNS servers after connecting to the VPN strongly suggests a DNS leak.

This test checks whether your DNS requests are being routed through your VPN's encrypted tunnel or leaking out to third-party DNS servers. A DNS leak test sends unique DNS probe requests to specially configured subdomains, with each probe triggering a DNS lookup that can be traced back to the DNS server that handled it.

Free Testing Tools

Common testing sites include ipleak.net as a general all-in-one testing site created by AirVPN, along with different Perfect Privacy test tools. Additional options include dnsleaktest.com for DNS-specific testing and browser leak testing services. The entire test runs in seconds, requires no signup, and works on any device or browser.

If you run the test and see your real IP address, your ISP's DNS servers, or a WebRTC result matching your physical location, then your VPN is leaking. The test labels each result clearly so you can identify the specific leak type and fix it.

How to Prevent and Fix Leaks

Once you've identified a leak, fixing it usually involves configuration changes rather than replacing your VPN entirely.

Enable VPN Leak Protection

Confirm your VPN app has DNS leak protection enabled—nearly every reputable provider has this as a toggle in settings and it should be on by default. Use the VPN provider's DNS handling, kill switch, and block-outside-DNS options where available.

Fix DNS Configuration Issues

The solution is to ensure that once connected to the VPN, you are using only the DNS servers provided by the VPN service. The most effective fix is to switch to a VPN service that runs its own zero-log DNS servers, keeping your queries inside the VPN tunnel and out of any third-party's hands.

For manual configuration, flush the DNS cache by opening a Command Prompt (Start > CMD) and entering the following command: ipconfig /flushdns. On macOS, clear caches via dscacheutil -flushcache and restart mDNSResponder with killall mDNSResponder.

Handle Browser DNS Settings

Add browser-level protection with DNS-over-HTTPS (DoH), which encrypts the DNS query itself so it can't be read even if it slips past the VPN tunnel.

For Chrome: open Settings, then Privacy and security, then Security, and turn on “Use secure DNS” before choosing a provider. For Firefox: open Settings, then Privacy & Security, and scroll to “DNS over HTTPS” to pick a protection level. For Edge: open Settings, then Privacy, search, and services, then Security, and turn on “Use secure DNS”. Menu names shift between versions, so search the settings page for “secure DNS” if you cannot find it.

There is one caveat. Browser-level DNS over HTTPS sends your lookups to the resolver you pick, which may not be your VPN provider's own DNS. If your goal is for the VPN to handle every lookup, you may prefer to leave the browser on its default and rely on the VPN's DNS instead. Choose one approach deliberately, then retest.

Check for WebRTC leaks

WebRTC is the browser technology behind video calls and peer-to-peer features. Some browsers can reveal your real IP address through it even when the VPN is connected, which is why good test pages include a WebRTC check. If the test shows an address that matches your physical connection, fix it in the browser.

  • Firefox: type about:config in the address bar, accept the warning, search for media.peerconnection.enabled and set it to false. This turns WebRTC off entirely, so video calls in the browser will stop working until you turn it back on.
  • Chrome and Edge: there is no simple built-in switch. Use your VPN's browser extension if it offers WebRTC protection, or a reputable extension that limits WebRTC exposure.
  • Everything else: use the VPN's own app settings, since many providers include a leak protection option.

Close IPv6 leaks

If a VPN tunnels only IPv4 traffic, any IPv6 request can go straight out through your ISP. The cleanest fix is a VPN that handles IPv6 properly or blocks it. If yours does not, you can disable IPv6 on the network adapter. On Windows, open the adapter's properties and untick Internet Protocol Version 6. On a Mac, the Terminal command networksetup -setv6off Wi-Fi does the same for Wi-Fi, and networksetup -setv6automatic Wi-Fi reverses it. Note the change and reverse it if you stop using the VPN.

Leak types at a glance

Leak typeWhat is exposedHow it shows up in a testUsual fix
DNS leakThe sites you look upDNS servers belong to your ISPTurn on the VPN's DNS protection, flush caches, avoid conflicting custom DNS
IP leakYour real IP address and locationPublic IP matches your normal connectionEnable the kill switch, switch protocol or server, update the app
IPv6 leakYour IPv6 address and queriesAn IPv6 address appears that is not the VPN'sBlock or disable IPv6, or use a VPN that supports it
WebRTC leakYour real IP via the browserWebRTC section shows your actual addressDisable WebRTC or use leak-blocking browser tools

A worked example: reading three test results

These scenarios show how to read the output of a typical leak test. The addresses are described, not real.

  • Result A: the public IP shows a data centre in another country, and the DNS servers are named after your VPN provider. This is a clean result. Nothing to fix.
  • Result B: the public IP shows the VPN's country, but the DNS section lists your home ISP by name. That is a DNS leak. Your lookups bypass the tunnel. Turn on DNS leak protection, retest, and if it persists try another protocol or app version.
  • Result C: the IP is your own address while the app says it is connected, or it flips to your real address when you briefly disconnect from Wi-Fi. That is a connection-drop leak, and a kill switch is the fix.

The key habit is to compare every test against your baseline from before you connected. A good result changes the visible IP and the DNS owner, not just one of them.

Phones, routers and other devices

Leaks happen off the desktop too. On Android, the “Private DNS” setting and the “Always-on VPN” option with “Block connections without VPN” help prevent traffic from escaping, although menu names vary between manufacturers. On iPhone, test while on both Wi-Fi and mobile data, since switching networks is when connection drops tend to happen. If you want every device in the home covered, our guide to setting up a VPN on your router explains the trade-offs of that approach. For phones specifically, see our comparison of the best VPNs for iPhone and Android.

The kill switch deserves its own attention, because it is what stops IP leaks when a connection drops. We cover how it works and how to test it in our guides to the VPN kill switch and the best kill switch setups.

Build a simple testing routine

  1. Record your baseline with the VPN off: IPv4, IPv6, DNS servers and location.
  2. Connect to the VPN and run a full leak test, not just an IP check.
  3. Repeat on each device and on both Wi-Fi and mobile data.
  4. Retest after an operating-system update, a VPN app update, a router change or switching providers.
  5. Do a quick retest monthly. Leaks often appear after something else changes.

If you are still choosing a provider, look at logging as well as leaks. Our guides to VPN logging policies and audited no-logs providers help you judge what a service does with your traffic once it is protected.

Frequently asked questions

Can a free VPN leak more than a paid one?

It can. Free services vary widely, and some lack leak protection or a kill switch. Testing matters more, not less, when you do not know how the app was built.

Does a leak mean my VPN is useless?

No. Most leaks are configuration problems with a fix. But you should treat the VPN as unprotected until the test passes.

How often should I test?

Test after setup and after any significant change, then occasionally. A monthly check is plenty for most people.

Will a leak test tell me if my VPN logs my activity?

No. A leak test only shows what is visible from outside. It says nothing about what the provider itself records.

The bottom line

A VPN that connects is not the same as a VPN that protects. Run a full test for IP, DNS, IPv6 and WebRTC leaks, compare against your baseline, fix what shows up, and retest after changes. Five minutes of testing is cheap insurance for the privacy you installed the VPN to get.