Tutorials Privacy

DNS leaks: what your "phone book" lookups reveal about you

Is your DNS query going where you expect?

Run this scan on your device

The short version

Every time you visit a website, your device quietly asks a "phone book" server to look up that site's address. That lookup is called DNS. If those lookups go to the wrong place, whoever runs that phone book can see a list of every site you visit. A DNS leak means your lookups are escaping to a server you didn't intend, often your internet provider, even when you think a VPN is hiding you.

What's actually happening

Imagine you want to mail a lot of letters, but you don't know anyone's street address. So you phone a directory service and read out each name: "Where does my bank live? Where does this news site live?" The directory writes down every name you ask about.

That directory service is DNS. The problem isn't that the letters get opened. It's that the directory keeps a record of every name you looked up. If you're using a VPN (a service that hides where your internet traffic comes from), you probably assume those lookups go through the VPN too. A leak means they sneak out the side door to your internet provider's directory instead. Your provider can't read the pages you load, but it can see the name of every site, which is often enough to know a lot about you.

Why it matters to you

  • Your internet provider can build a list of every website you visit, even with a VPN running.
  • On public Wi-Fi, a stranger on the same network may be able to see or tamper with your lookups.
  • It quietly undoes the privacy you may be paying a VPN for.

A DNS leak doesn't expose your passwords or the contents of your messages. It exposes the list of places you go. That's the honest scope of it.

How to fix it

There are two good moves. If you use a VPN, start with step 1. If you don't use a VPN, skip to step 2 to turn on encrypted DNS, which hides your lookups from your provider and from strangers on the same network.

1. Turn on your VPN's leak protection

  1. Open your VPN app and go to its Settings.
  2. Look for DNS leak protection, Use VPN DNS, or similar, and turn it on. Most good apps have this on already.
  3. If the app has a Kill Switch, turn it on too. It blocks the internet if the VPN drops, so nothing leaks.

2. Turn on encrypted DNS on your device

Windows 11:

  1. Open Settings and go to Network & internet.
  2. Click your Wi-Fi or Ethernet connection, then find DNS server assignment and click Edit.
  3. Switch to Manual, turn on IPv4, and type a private DNS server (for example Cloudflare's 1.1.1.1 or Quad9's 9.9.9.9).
  4. Set the DNS over HTTPS box to On (automatic template), then click Save.

Android (version 9 and newer):

  1. Open Settings, then Network & internet (on some phones it's Connections).
  2. Tap Private DNS.
  3. Choose Private DNS provider hostname and type dns.quad9.net or one.one.one.one, then Save.

iPhone or iPad: Apple has no simple switch for this. The easiest path is to install a trusted app like Cloudflare 1.1.1.1 or NextDNS from the App Store and follow its one-tap setup.

3. In your web browser (optional)

Browsers have their own DNS setting. If you use a VPN, it's usually best to turn the browser's version off so everything goes through the VPN. If you don't use a VPN, leaving it on adds privacy.

  • Chrome / Brave: Settings → Privacy and security → Security → Use secure DNS.
  • Edge: Settings → Privacy, search, and services → Security → Use secure DNS.
  • Firefox: Settings → Privacy & Security → scroll to DNS over HTTPS.
  • Safari: has no such setting; it follows whatever your Mac or iPhone uses.

How to check it worked

Come back and run the DNS leak test on this site (turn on your VPN first if you use one). You want to see only your VPN's or your chosen provider's servers in the results, not your home internet provider's name. If your provider no longer shows up, you've fixed it.

If your result was already good

If this test passed, your lookups are already going where they should. You don't need to change anything. Just keep your VPN app updated, and if you switch Wi-Fi networks a lot, it's worth re-running this test once on a new network to be sure the good result follows you.

Want to go further?

Switch to the Advanced version of this guide for the difference between DoH and DoT, how to stop apps from hard-coding their own DNS, and how to lock this down for your whole home at the router.

whoamionline.com Free privacy & network diagnostics Check your own connection →