Network security

DNS Leak Test: How to Check for a DNS Leak and Fix It in 2026

Your VPN can look connected while your DNS requests still go to your ISP. This guide shows you how to run a DNS leak test, read the result, and fix a leak.

Cysoro Security TeamPublished · 10 min read
DNS LEAK TESTResolver detected:vpn-dns.exampleNo leak foundISP DNS not visibleChecked in under a minute NETWORK SECURITY DNS leaktest Is your VPN really hiding you?
Quick answer

A DNS leak test checks which DNS server answers your domain lookups. With a VPN on, that server should belong to your VPN provider, not your internet provider. If the test shows your ISP, a local resolver, or a server in your home country while you are connected elsewhere, your DNS is leaking and your browsing destinations are visible.

Key takeaways

  • A DNS leak exposes the domains you visit to your ISP, even when your VPN says it is connected.
  • Test twice: once with the VPN off for a baseline, then again with it on, and compare the DNS servers shown.
  • Most leaks are fixed by turning on DNS leak protection, using your VPN provider's DNS, and disabling IPv6 or split tunneling.

Your VPN app says connected, the padlock is in place, and your IP address looks different. Yet your internet provider may still see every website you visit. That happens when your DNS requests slip outside the VPN tunnel, and the only way to know is to run a DNS leak test.

What is a DNS leak?

A DNS leak happens when your domain lookups bypass your VPN tunnel and go to your internet provider's DNS server instead. Your VPN hides your IP address from websites, but your ISP can still see the domains you look up.

DNS is the system that turns a domain name such as example.com into an IP address your browser can connect to. Every time you visit a new site, your device asks a DNS server for that answer. Normally, with a VPN on, that question should travel inside the encrypted tunnel to your VPN provider's DNS server.

When a leak occurs, some or all of those questions take a different path. Common causes include a VPN app that does not manage DNS, split tunneling that sends some traffic outside the tunnel, a browser using its own DNS over HTTPS provider, or IPv6 requests that escape the tunnel.

The connection still works, pages load at normal speed, and no warning appears, which is why leaks are so easy to miss.

A leak does not expose the full contents of an encrypted HTTPS page. It does expose the domain and the time of the lookup. Over a day, that list of domains can reveal your bank, your doctor, your employer, and the news and services you use.

What is a DNS leak test?

A DNS leak test is a free online check that reveals which DNS server actually answered your lookups. It works from the server side: the test page makes your browser look up unique hostnames that no cache can already hold, and the tester's authoritative server records the IP address of the resolver that asked for them.

That recorded address is the egress address of the resolver that handled your lookup, whatever your settings claim. If it belongs to your ISP while your VPN is connected, your DNS is leaking. The test cannot be fooled by a setting that says otherwise, because it observes the traffic, not the configuration.

TechRadar's guide to DNS leaks recommends the same baseline-then-VPN-on method, using DNSLeakTest, BrowserLeaks and IPLeak to confirm a result.

Popular test sites include DNSLeakTest, BrowserLeaks, and IPLeak. Each shows the IP addresses and names of the DNS servers it detected, and often the ISP or organization behind them. Run the test on each device you use, because a laptop can pass while a phone fails.

Leaking vs protected DNS Leaking Your device VPN tunnel carries web traffic DNS queries go outside it ISP DNS sees every domain Your ISP can log your browsing Protected Your device Web traffic and DNS queries both travel inside the tunnel VPN provider DNS answers Your ISP sees only encrypted traffic The test shows which path your queries actually took.
A DNS leak sends lookups outside the VPN tunnel; a protected setup keeps them inside it. Illustration by Cysoro.

How do I run a DNS leak test?

Run the test twice: once with the VPN off to get a baseline, and once with it on. The comparison is what tells you whether you have a leak, not any single result on its own.

  1. Disconnect your VPN. Open a DNS leak test site and run the standard or extended test. Note the DNS server IP addresses, the ISP name, and your location shown.
  2. Connect your VPN. Choose a server in a different country if you can, so a leak is easier to spot. Wait until the app confirms the connection.
  3. Run the same test again. Use the same test site and the same test type, extended if available, so the results are comparable.
  4. Compare the two results. If the DNS servers now belong to your VPN provider or a resolver you chose, you are protected. If your ISP still appears, you have a leak.
  5. Confirm with a second test site. Try another tester such as BrowserLeaks or IPLeak. If both show your ISP, the leak is real, not a quirk of one site.
  6. Repeat on each device. A result on your laptop says nothing about your phone, tablet, or work computer.

Use the extended test when it is offered. It performs more lookups than the standard test, so it maps more of your DNS servers and is more likely to catch a partial leak where only some queries escape.

You can also check from the command line. The query dig +short whoami.akamai.net returns the IP address of the resolver that asked Akamai on your behalf. If that address belongs to your ISP while your VPN is on, your DNS is leaking.

How do I read the results?

A clean result shows DNS servers owned by your VPN provider, or by the public resolver you deliberately chose, in the same country as your VPN server. A leaking result shows your ISP, a local network resolver, or servers in your home country while your VPN server is elsewhere.

What the test showsWhat it meansWhat to do
VPN provider DNS onlyProtectedRetest after updates or network changes
Your ISP listedDNS leakTurn on leak protection and retest
Mix of VPN and ISP serversPartial leakCheck split tunneling and IPv6 settings
Public resolver you choseProtected, if you chose itConfirm it is the resolver you intended
Unknown serversUnclearLook up the owner and retest on another site

Do not panic over a single unfamiliar server name. Some VPN providers use third-party DNS infrastructure, and some public resolvers use anycast addresses that appear in unexpected places. Look up the organization behind the address, check your VPN provider's documentation for the DNS servers it uses, and confirm the result on a second test site before you change anything.

CC's DNS leak explainer describes how a test works from the server side, by recording which resolver actually asked for its unique hostnames.

Also check the IP address and location shown alongside the DNS result. If your VPN is set to another country but the test still shows your home city, the tunnel itself may not be working, which is a bigger problem than a DNS leak alone.

DNS leak vs IP leak vs WebRTC leak: what is the difference?

These three leaks expose different things, and a single test site often checks all of them at once. Knowing which one you have tells you where to fix it.

Leak typeWhat is exposedWho sees it
DNS leakDomains you look upYour ISP's DNS servers
IP leakYour real IP address and locationWebsites you visit
WebRTC leakYour real IP, even behind a VPNWebsites using WebRTC in the browser
IPv6 leakDomains and traffic over IPv6Your ISP, outside the IPv4 tunnel

A DNS leak means the domains you look up are visible to your ISP's DNS servers, even while your real IP may stay hidden from the sites you visit. An IP leak is the opposite problem: your real address reaches the website. A WebRTC leak happens when your browser's real-time communication feature reveals your real IP address to a site, even though the VPN is on.

Test all three together when you can. Our free WebRTC leak test checks the browser side.

Our what is my IP tool shows the address websites see. If any of them shows your real ISP or location while your VPN is connected, something in your setup needs attention.

What causes a DNS leak?

Most leaks come from settings, not from a broken VPN. The five causes below cover almost every case you will meet.

The VPN app is not managing DNS

Some VPN clients, especially manual or split-tunnel setups, route your traffic through the tunnel but leave your system DNS settings untouched. Your browser then keeps asking your ISP's resolver. Check that your VPN is set to use its own DNS servers.

Windows smart name resolution

Windows 8 and later include Smart Multi-Homed Name Resolution, which can send DNS queries to every available resolver at once and use whichever answers first. That can include your ISP's resolver even when the VPN is on. Disabling this feature, or using a VPN that handles it, usually stops the leak.

Your browser resolves on its own

A browser with DNS over HTTPS enabled sends its lookups to the DoH provider it was configured with, bypassing the system resolver and your VPN's DNS. This is not always a leak in the harmful sense, since the queries are encrypted, but it does mean your VPN provider is not the one answering them, and the test will flag it.

Split tunneling is on

Split tunneling lets you choose which apps or sites bypass the VPN. If your browser is in the bypass list, its DNS queries go outside the tunnel too. This is a feature when you want it, and a leak when you forgot it was on.

IPv6 traffic escapes the tunnel

Many VPNs were built around IPv4. If your network and device support IPv6, some queries can travel over IPv6 outside the tunnel while your IPv4 traffic stays protected. Turn on IPv6 leak protection in your VPN app, or disable IPv6 if the app offers no such setting.

How do I fix a DNS leak?

Work through these fixes in order, and retest after each change. Most leaks disappear at step one or two.

  1. Turn on DNS leak protection. Open your VPN app settings and look for DNS leak protection, then make sure it is enabled. Many apps have this feature but do not enable it by default.
  2. Force your VPN's DNS servers. Look for a setting that forces the use of the VPN's own DNS servers, and turn it on. Avoid manually setting your system DNS to your ISP's servers.
  3. Turn on IPv6 leak protection. If your app offers it, enable it. If it does not, consider disabling IPv6 on the device as a temporary measure.
  4. Check split tunneling. Make sure your browser and the apps you want protected are not listed to bypass the VPN.
  5. Check your browser's DNS settings. If your browser uses DNS over HTTPS with a provider you did not choose, change it to use your system DNS or your VPN provider's resolver.
  6. Try a different VPN protocol. Some protocols handle DNS better than others. Switch protocols in your app settings and retest.
  7. Flush your DNS cache. On Windows, run ipconfig /flushdns in Command Prompt. On a Mac, run sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder in Terminal.
  8. Restart your device and router. If the leak persists after the steps above, a restart clears cached settings that may still point at your ISP.

If none of this helps, consider switching VPN providers. A provider that cannot keep your DNS inside the tunnel is not doing the core job you pay it for. Before you switch, check whether the leak happens on every network or only on one, such as a hotel or office Wi-Fi that forces its own DNS.

A network that intercepts DNS can defeat even a good VPN, and in that case a different network is the fix.

Fix a DNS leak in five steps 1Turn on DNS leak protection in your VPN app 2Force the VPN provider's DNS servers 3Enable IPv6 leak protection and check split tunneling 4Flush the DNS cache and restart the device 5Retest on two sites, on every device you use
Work through the steps in order and retest after each change. Illustration by Cysoro.

How often should you run a DNS leak test?

Run a DNS leak test whenever your setup changes: after installing or updating your VPN, after changing VPN servers or protocols, after joining a new Wi-Fi network, and after an operating system update. A monthly check is a sensible habit if you rely on a VPN every day.

Also test after you travel. Hotel, airport, and office networks often intercept DNS or force their own resolver, and a VPN that worked at home can leak on a network that plays by different rules. If you work from public Wi-Fi often, our guide to how to secure your Wi-Fi covers the wider setup, including network settings that affect DNS.

Keep a note of your clean baseline. When you know which DNS servers your VPN normally shows, a future leak is obvious at a glance instead of a puzzle to solve from scratch.

Common DNS leak test mistakes

A test is only useful if you run it the right way. These mistakes produce misleading results.

  • Testing only once, with the VPN on. Without a baseline, you cannot tell whether the servers shown belong to your ISP or your VPN provider.
  • Testing only in one browser. Browsers can have their own DNS settings. Test in the browser you actually use, and check the system resolver from the command line too.
  • Ignoring IPv6. A test that only checks IPv4 can miss an IPv6 leak. Use an extended test and check IPv6 explicitly where the tester offers it.
  • Trusting the VPN app's status alone. The app can show connected while DNS still leaks. The app status is a claim; the test is evidence.
  • Changing several settings at once. If you change three things and the leak stops, you will not know which one fixed it, and you may undo the fix later by accident.

The bottom line

A DNS leak test takes less than a minute, and it answers a question your VPN app cannot answer on its own: who actually sees the domains you visit? Run it with the VPN off, then on, compare the DNS servers, and confirm the result on a second test site.

If you find a leak, turn on DNS leak protection, use your VPN provider's DNS, and retest. You can start by checking what your connection currently reveals with the free what is my IP tool.

Our DNS lookup tool shows the records behind a domain, which helps when a leak test shows an unfamiliar resolver.

Frequently asked questions

What is a DNS leak test?

A DNS leak test is a free online check that shows which DNS server answers your domain lookups. You run it with your VPN on and compare the servers shown with your VPN provider's servers. If your ISP appears, your DNS is leaking.

How do I run a DNS leak test?

First run the test with your VPN off and note the DNS servers and ISP shown. Then connect your VPN, run the same test again, and compare. Use the extended test if one is offered, because it queries more servers and gives a fuller picture.

What does a DNS leak expose?

A DNS leak exposes the domain names you look up and when you looked them up. It does not usually expose the exact page you opened or the contents of an encrypted HTTPS page, but the domain alone can reveal a lot about your activity.

Can a DNS leak happen without a VPN?

Yes, but the term usually describes a VPN problem. Without a VPN, your DNS requests normally go to your ISP or your configured resolver anyway, so there is nothing to leak from. The risk is that you think a VPN is protecting you when it is not.

How do I fix a DNS leak?

Turn on DNS leak protection in your VPN app, set the app to use your VPN provider's DNS servers, turn off split tunneling for the apps you want protected, and retest. If the leak continues, try a different VPN protocol or switch to a provider with built-in leak protection.

Is dnsleaktest.com safe to use?

DNS leak test sites are widely used and the common ones run by VPN providers and security sites are generally safe. They do show your IP address and DNS servers, which is the point of the test, so use a reputable test site and do not enter personal details.

Does DNS over HTTPS stop DNS leaks?

DNS over HTTPS encrypts your DNS requests, but it can bypass your VPN if your browser sends lookups to its own DoH provider instead of your VPN's DNS. Check your browser settings and make sure the browser is not using a different resolver from the rest of your system.

Should I disable IPv6 to stop a DNS leak?

Disabling IPv6 can stop IPv6-specific leaks, and some VPN guides recommend it. Many VPN apps now include IPv6 leak protection, so try that setting first. Only disable IPv6 system-wide if your VPN still leaks after you have tried its own protection.

Sources

  1. TechRadar — What is a DNS leak? Everything you need to know to find and fix DNS leaks
  2. Encapsulated Network — DNS Leak Test: Free Check + What It Is & How to Fix It
  3. CC — DNS Leak, Explained: How to Test and Fix It
  4. DomScan — DNS Leak Test: What It Is and Why It Matters
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against TechRadar's DNS leak guide and independent leak-test explanations from Encapsulated Network, CC and DomScan.

How we write and fact-check →

Free tools for this topic

No account needed.

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free