What's My IP

Privacy

What Is a DNS Leak?

Privacy · 5 min read · Updated October 29, 2026

Your IP:216.73.216.41Full details

A DNS leak happens when your DNS requests, the lookups that turn website names into IP addresses, bypass your VPN and go to your internet provider or another unprotected server instead. That means someone watching those requests can see which websites you visit, even though your public IP address looks hidden.

The good news is that a DNS leak is easy to test for and usually easy to fix. It takes about a minute to check, and the fix is often just a setting change in your VPN app or your device.

How DNS works, and what leaks

Every time you type a website name into your browser, your device asks a DNS server to translate that name into an IP address, so it knows where to connect. Normally, when you use a VPN, those requests should travel through the VPN tunnel to the VPN provider's own DNS servers.

A leak happens when some or all of those requests escape the tunnel. Your browser may fall back to your internet provider's DNS, your router's DNS, or a DNS server built into your operating system. Your traffic may still be encrypted, but the list of sites you look up is exposed.

How to test for a DNS leak

First, connect to your VPN if you use one. Then open a DNS leak test site in your browser and run the standard test. The results page lists the DNS servers that handled your requests, along with the internet provider and country each one belongs to.

If every server shown belongs to your VPN provider, you are in good shape. If you see your own internet provider, your home city, or a server you do not recognize, you have a leak. Run the test again after each fix below to confirm it worked. You can also compare your result with the address shown on our homepage, since a mismatch between the two is a clue that something is leaking.

How to fix a DNS leak

Start in your VPN app. Look for a setting called DNS leak protection, kill switch, or private DNS, and turn it on. This forces all DNS requests through the VPN tunnel and blocks traffic if the tunnel drops. Restart the VPN connection after changing the setting, then test again.

If the leak continues, turn off DNS settings that bypass the VPN. In your browser, disable secure DNS or DNS over HTTPS if it points to a provider outside your VPN. On your device, check that you have not set a custom DNS server manually, and clear your browser's DNS cache by restarting the browser. If you hide your IP with a VPN but the leak persists after all of this, try a different VPN server or contact your VPN provider's support, since some servers are misconfigured.

How to prevent DNS leaks in the future

Keep your VPN app updated, since leak protection improves over time, and leave the kill switch on at all times. Avoid browser extensions that change your DNS or proxy settings, and be careful with public Wi-Fi networks, which sometimes force their own DNS on you.

It is worth retesting every few months, or whenever you change VPN providers, routers, or devices. A quick test after any change catches a leak before it quietly exposes weeks of browsing. If you need a fresh address as well as leak protection, see how to change your IP address for the simplest methods.

Frequently asked questions

Does a DNS leak reveal my exact location?

Not your street address, but it can reveal your internet provider and your approximate city or region, which is often enough to identify where you are browsing from. That is the main privacy risk.

Is a DNS leak dangerous?

For most people it is a privacy problem, not an immediate security threat. It does not give anyone your passwords, but it does let your provider, a network operator, or anyone monitoring the network see which websites you visit.

Can I have a DNS leak without a VPN?

Technically, no. Without a VPN there is nothing to leak from, because your DNS requests already go to your provider or your chosen DNS service in the open. The term only matters when you expect a VPN to be protecting those requests.

Why does my test show my internet provider even with my VPN on?

That is the classic sign of a leak. Your VPN app is not routing DNS requests through its tunnel, or your browser or device is overriding the VPN's DNS with its own setting. Turn on DNS leak protection in the VPN app and disable any custom DNS in your browser, then test again.

Do I need a VPN to stop DNS leaks?

A VPN with leak protection is the simplest fix, but you can also reduce exposure by using an encrypted DNS service you trust, such as DNS over HTTPS from a reputable provider. That hides your lookups from your provider, though it does not hide your IP address the way a VPN does.

How often should I test for a DNS leak?

Test once after setting up your VPN, again after any app update or device change, and every few months as a routine check. Each test takes under a minute.

Related guides