Skip to content

Learn · Privacy

DNS leaks and encrypted DNS

2 min read4 sources

Every site you visit starts with a DNS question. Who answers that question, and whether it travels encrypted, decides who can see your browsing list.

What a DNS leak actually is

Before your browser connects to a site, it asks a resolver for the site’s address. Traditional DNS sends those questions unencrypted, so the resolver operator and anyone on the path can see which names you look up.

A “leak” is a mismatch between what you expect and what happens. If you use a VPN and assume your lookups go through it, but your device still asks your internet provider’s resolver, those lookups have leaked outside the tunnel. Without a VPN, using your provider’s resolver is normal and not a leak.

How encrypted DNS helps

DNS over TLS (RFC 7858) and DNS over HTTPS (RFC 8484) wrap lookups in encryption between your device and the resolver. People on the same Wi-Fi or along the path can no longer read or tamper with the questions. The resolver itself still sees every name, so you are moving trust to it, not removing trust altogether. Choose a resolver whose privacy policy you are comfortable with.

Encrypted DNS also does not hide the site from your provider entirely. The destination IP address and, in many cases, the server name in the TLS handshake remain visible.

Testing for a leak

  1. Write down what you expect: your provider, a public resolver you configured, or your VPN’s resolver.
  2. Run the DNS leak test. Your browser makes lookups for unique names, and the test reports which resolvers asked for them.
  3. Compare the reported organisations with your expectation. Seeing a large public DNS operator or content network can be normal if your settings or VPN use one.
  4. If you are on a VPN and see your home provider’s resolvers, the setup is not routing DNS as you intended.

Fixing what you find

  • Turn on your VPN app’s DNS protection or “use VPN DNS” option, and check that IPv6 is handled.
  • Enable secure DNS in your browser settings and pick a provider, or set encrypted DNS at the operating-system level.
  • On routers, configure the resolver there so every device inherits it, but remember that browser-level DoH can override router settings.
  • Retest after each change so you know which step made the difference.

Tools and next reads

Sources

These guides provide general information. Check your provider’s own documentation for settings specific to your equipment.

Back to all guides