CheckMyTunnel

What is a DNS leak?

Before your browser can load a site, it asks a DNS resolver to turn the name into an IP address. With a VPN connected, those lookups should go through the tunnel to a resolver chosen by the VPN. A DNS leak is when they go to another resolver instead — usually your internet provider’s — so the provider, or anyone watching that network, can see every site you visit even though the traffic itself is encrypted.

Leaks are common when the operating system keeps a resolver configured on the local network adapter, when split tunneling sends DNS outside the tunnel, or when a browser or app is set to use its own DNS server.

How this DNS leak test works

Your browser looks up several random hostnames under a domain whose name server we run. Because the names are unique to your test, every query that reaches our name server comes from a resolver handling your lookups. We record the resolver addresses, look up their network and country, and compare them with your VPN exit IP.

  • Leak: a resolver sits outside your exit network, which can reveal your real internet provider or location.
  • Warning: your lookups go to a well-known public resolver. It isn’t your provider’s, but we can’t confirm the queries travel through the tunnel.
  • Passed: every resolver belongs to your exit network.
  • EDNS Client Subnet: we also check whether the resolver forwarded part of your IP address to our name server, which can reveal your approximate location.

How to fix a DNS leak

  • Turn on DNS leak protection in your VPN app, or set it to use the VPN’s own DNS servers.
  • Remove custom DNS servers from your network adapter or router if they override the VPN.
  • Check that a browser setting such as secure DNS doesn’t send lookups to a resolver outside the tunnel.
  • Make sure split tunneling doesn’t exclude your browser, then run the test again.

DNS leak questions

How do I know if my DNS is leaking?

Connect your VPN and open this page. If any DNS resolver shown sits outside your VPN exit’s network, such as your internet provider’s, your DNS is leaking.

Is using a public resolver such as 1.1.1.1 or 8.8.8.8 a DNS leak?

Not on its own. Your internet provider can’t read encrypted lookups sent to a public resolver, but the resolver operator still sees which sites you look up. Plain lookups sent outside the tunnel can still be seen by your provider.

Does a DNS leak reveal my IP address?

A DNS leak reveals which resolver you use, and through it your internet provider and approximate location. If the resolver forwards EDNS Client Subnet data, part of your IP address is shared too.