PassGen.co

Language

All tools
All tools
All tools

DNS Leak Test

Testing your DNS…

Your browser is looking up a few test names. This takes a few seconds.

Checking…
  1. Your address

    Checking…
  2. DNS servers

    Checking…

Next step

Your browser looks up random test names that only our own name server answers. It keeps the addresses of the DNS servers that asked, for 10 minutes, and nothing about you.
VPN leak testWhat is my IP?

DNS Leak Test: Check Where Your Lookups Go

Before your browser can open a website, it asks a DNS server for the site’s address, and whoever runs that server sees the name of every site you look up. This DNS leak test shows which servers answered your browser just now, and who runs them.

On a VPN, those servers should be your VPN’s, or a public DNS service you chose. If one belongs to your internet provider, your lookups are leaking around the VPN. The result says which it is, in plain words.

Jump to: What a leak is · Reading the result · Fixing a leak · Secure DNS · Public DNS · Questions

What a DNS Leak Is

On a VPN, your DNS questions should travel through the VPN to a DNS server the VPN chooses. A DNS leak is when they go around it, usually to your internet provider’s own servers, so your provider can still see where you go, even though the pages themselves are encrypted.

A leak doesn’t reveal your address to the websites you visit: they still see the VPN’s. What it gives away is a list of the sites you look up, to a company you may have been trying to keep it from. That’s why it matters most to people who use a VPN for privacy on a home or public network, and much less to someone who uses one only to watch another country’s TV.

How to Read the Result

Your browser looks up a handful of made-up names, such as x7k2q9…-1.dl.passgen.co. Nobody else knows these names, so whichever DNS server handles your connection has to ask our own name server for them. We note which servers asked, then look up who runs each one. That’s the list in the result.

  • Your VPN’s network, or a public DNS service such as Cloudflare, Google, or Quad9: your lookups don’t reach your internet provider. No leak.
  • An internet provider while you’re on a VPN: that’s a DNS leak. Your provider, or the network you’re on, can see the sites you visit.
  • A data center that isn’t your VPN’s: some VPNs rent their DNS servers from hosting companies, so this is rarely a leak. What matters is that it isn’t your internet provider.
  • Not on a VPN: there’s nothing to leak. Your lookups go to your provider or to the DNS service your device or router uses.

Whether you’re on a VPN is judged from the address your connection arrives from: one that belongs to a data center usually means a VPN. That’s a good guess, not proof. And don’t worry about the city: a big DNS service often passes the question to another of its own machines, so what counts is who runs the server, not where it is.

How to Fix a DNS Leak

  1. In your VPN app’s settings, turn on DNS leak protection, or use the VPN’s DNS only.
  2. Turn on its kill switch too (also called Always-on VPN or Network Lock), so nothing goes out if the VPN drops.
  3. If your VPN covers only IPv4, turn on IPv6 leak protection, or turn IPv6 off while you use it. Otherwise some lookups can go out over IPv6, straight to your provider.
  4. Check that split tunneling doesn’t leave your browser outside the VPN.
  5. Turn off your browser’s own secure DNS while you use the VPN, or set it to the VPN’s DNS. Then press Test again.

On Windows, a common cause is a feature that sends each lookup to every network connection at once and takes the fastest answer, your normal Wi-Fi included. Good VPN apps switch it off while they’re connected. A VPN set up by hand, with the built-in Windows client or a config file, may not, and this test is how you find out.

Secure DNS in Your Browser

Browsers can send their DNS questions encrypted, straight to a DNS service they choose. This is DNS over HTTPS, or secure DNS. It stops your provider and anyone on your Wi-Fi from reading the names you look up. On a VPN it also means the browser skips the VPN’s DNS, so this test may list that DNS service: not a leak to your provider, but not your VPN either.

  • Chrome: Settings, then Privacy and security, then Security, then Use secure DNS.
  • Edge: Settings, then Privacy, search, and services, then Security, then Use secure DNS.
  • Firefox: Settings, then Privacy & Security, then DNS over HTTPS. In some countries, including the United States and Canada, it’s on by default.
  • Safari has no setting of its own: it uses your Mac’s, iPhone’s, or iPad’s DNS, or iCloud Private Relay if you use it.

Your device can do the same for every app: Android calls it Private DNS (Settings, then Network & internet), and Windows 11 has DNS over HTTPS in each network connection’s settings.

Public DNS Services, and What They See

You don’t have to use your provider’s DNS. Public services answer anyone:

  • Cloudflare (1.1.1.1) says it never writes your address to its permanent logs, and deletes its short-term logs within about a day.
  • Google Public DNS (8.8.8.8) keeps a short-term log with your address for a day or two, then keeps a version without it.
  • Quad9 (9.9.9.9), run by a nonprofit foundation in Switzerland, says it doesn’t record your address, and it blocks sites known to spread malware.

Whichever one you use sees the names you look up, the same as your provider would: switching moves that view to a company you pick. On a VPN, the VPN’s own DNS is usually the better choice, because it adds no one new.

If this test shows your provider even though you set Cloudflare or Google, your router or provider is probably catching ordinary DNS questions and answering them itself. Encrypted DNS, or a VPN that carries DNS inside its tunnel, gets around it.

Frequently Asked Questions

Why do I see several DNS servers?

Big DNS services answer from many machines, and one lookup can be passed between them. Several servers from the same company are normal.

I use Cloudflare or Google DNS. Is that a leak?

Not to your provider. Those companies see the names you look up instead, so pick one whose privacy policy you trust, or use your VPN’s own DNS.

Does this test see the sites I visit?

No. It only sees the test names this page looks up, and only the addresses of the DNS servers that ask for them. It keeps those addresses for 10 minutes.

It says my address is an internet provider’s, but I’m on a VPN. Why?

Then your VPN isn’t carrying this browser’s traffic: check that the app says Connected, and that split tunneling doesn’t leave the browser out. A few VPNs use home addresses on purpose; the VPN leak test compares your connection with and without the VPN, which settles it.

Does a DNS leak reveal my IP address?

Not to the sites you visit: they still see the VPN’s address. The leak tells your provider, or whoever runs that DNS server, which sites you look up.

Does private or incognito browsing stop DNS leaks?

No. Private browsing only stops the browser keeping your history and cookies. Its lookups go to the same DNS servers as any other window.

If my DNS is encrypted, can my provider still see where I go?

Sometimes. Without a VPN, your provider still sees the addresses you connect to, and many sites still send their name in the open at the start of a secure connection. A working VPN hides both.

Is this the same as the VPN leak test?

It’s one part of it. The VPN leak test runs this DNS check together with the address, WebRTC, IPv6, and time zone checks, and gives one verdict.