Donate

DNS Leak Test Guide

How resolver-aware testing identifies DNS resolvers, and what the result can and cannot prove

What this guide does

A DNS leak can happen when queries use a resolver outside the path or policy you expect from your VPN. A genuine test creates a unique hostname for your session and records which recursive resolver asks the authoritative DNS server for it. This page is a written guide; it does not run that authoritative DNS measurement itself.

IP Lookup, DNS Lookup, reverse DNS, and ASN Lookup can help identify an address after a resolver-aware test reports it. They cannot reveal which resolver your browser or device is currently using, so none of them provides a DNS leak verdict on its own.

Continue with supporting checks:
  • VPN verification wizard - guided context for IP, WebRTC, IPv6, proxy, and ASN signals.
  • WebRTC leak test - browser-level check for local/public IP exposure.
  • IPv6 leak test - checks whether the browser can reach the site over IPv6 so you can investigate that route separately.

What is a DNS leak in a VPN?

A DNS leak means DNS queries are resolved outside the VPN path or resolver policy you intended to use. A VPN can change the public IP websites see while the operating system, browser, or an excluded app selects a different resolver.

An IP check answers "what address do websites see?" A resolver-aware DNS test answers "which recursive resolver contacted the test domain's authoritative server?" Resolver ownership is useful evidence, but it does not by itself show the complete packet route between your device and that resolver.

How a real DNS leak test works

  1. Before connecting the VPN, record your public IP, ISP, and ASN on the homepage IP checker.
  2. Use a resolver-aware test that generates a unique hostname. Its authoritative DNS service must log the recursive resolver that requests that hostname.
  3. Connect the VPN, repeat the unique-hostname test, and compare the observed resolver addresses with the VPN provider's documented DNS behavior. Run several queries because caches, fallback, and multiple resolver endpoints can affect one result.
  4. Use ASN Lookup and Reverse DNS only to research an observed resolver IP. A normal DNS record lookupresolves the domain you enter from this site's server; it does not test your device's resolver.

How to investigate and fix an unexpected resolver

Change settings only after a resolver-aware test repeatedly shows behavior that conflicts with your VPN provider's documentation. A public DNS provider is not automatically a leak, and switching to one changes who handles queries rather than proving that DNS is traveling through the VPN tunnel.

  • Enable the VPN app's DNS protection and kill switch, then reconnect so its network rules are applied again.
  • Compare operating-system and browser secure DNS settings with the VPN provider's documented configuration.
  • Review split tunneling rules for the browser and any app making DNS requests.
  • Confirm the VPN supports both IPv4 and IPv6 on the current network, or follow its documented IPv6 fallback guidance.

Repeat the same unique-hostname measurement after each change. Compare the observed resolver with the expected VPN behavior; ordinary DNS record lookups are not a substitute for that retest.

Why an unexpected resolver can appear with a VPN

An unexpected resolver can come from VPN configuration, browser policy, split tunneling, or fallback behavior. It is evidence to investigate, not an automatic verdict about the packet route.

  • System and VPN DNS settings differ.The VPN may not replace the operating system's resolver, or another network service may change the setting after the tunnel connects.
  • Browser DNS-over-HTTPS (DoH). Chrome, Firefox, and Edge can select a DoH resolver instead of the resolver supplied by the VPN. That can bypass VPN-provided resolver selection, but it does not prove the HTTPS packets left the VPN tunnel; routing and split-tunnel rules determine their path.
  • Split tunneling misconfiguration. If your VPN excludes a browser or app, its DNS behavior can differ from fully tunneled apps. The exact route depends on the VPN client and operating system.
  • IPv6 DNS fallback. Some networks send DNS traffic over IPv6 even when IPv4 is tunneled. If the VPN does not handle IPv6 consistently, investigate the IPv6 path with the IPv6 leak test.

Primary technical sources

These primary sources define DNS over HTTPS and document browser controls. They explain resolver selection and encryption; they do not replace a resolver-aware measurement of your connection.

How to interpret resolver-aware DNS test results

The patterns below apply only when a test uses a unique hostname and authoritative DNS logging. Resolver ownership is a useful signal, but compare it with the VPN's documented DNS behavior before calling the result a leak.

  • ISP resolver before, expected VPN resolver after: consistent with the VPN selecting its documented resolver. It does not independently map every packet in the tunnel.
  • ISP resolver before and after:strong evidence of unexpected resolver use if the VPN promises to replace it. Confirm with repeated queries and the provider's documentation.
  • Public resolver (Cloudflare, Google) before and after: shows that a third-party recursive resolver handled the query. It is not, by itself, a leak verdict and does not show whether DoH traffic traveled inside or outside the VPN tunnel.
  • Mixed resolvers after connecting: investigate browser DoH, split tunneling, fallback, caching, and multiple network interfaces. Mixed results do not automatically prove a partial leak.

This site's DNS Lookup queries public DNS records from the server. Reverse DNS and ASN Lookup can identify an IP already reported by a resolver-aware test, but neither discovers your active resolver.

Need a VPN with documented DNS controls?

If repeated resolver-aware tests conflict with your VPN provider's documented DNS behavior, review its DNS protection, split-tunneling, IPv6, and browser DoH guidance before comparing alternatives.

Supporting checks after a resolver-aware DNS test

Investigate other exposure paths and identify resolver addresses without treating those tools as a DNS leak verdict.

Frequently asked questions

What is a DNS leak in a VPN?
A DNS leak means DNS queries are resolved outside the VPN path or resolver policy you intended to use. A changed public IP does not prove that the operating system, browser, and excluded apps are using the VPN provider's expected resolver.
How do I fix a DNS leak?
First confirm the unexpected resolver with repeated resolver-aware tests and compare it with the VPN provider's documentation. Then enable the VPN DNS protection, align browser and operating-system secure DNS settings, review split tunneling and IPv6 behavior, reconnect, and repeat the same measurement.
What is a DNS leak test?
A genuine DNS leak test generates a unique hostname and records which recursive resolver contacts the test domain's authoritative DNS server. Ordinary DNS record, reverse DNS, IP, and ASN lookups do not discover the resolver used by your device.
Can I leak DNS even if my IP changes?
Yes. A public IP change alone does not show which recursive resolver handled a query. Use a resolver-aware test and compare its result with the VPN provider's documented DNS behavior.
How often should I test for DNS leaks?
Test after VPN app updates, OS network changes, and when switching between Wi-Fi and mobile/hotspot networks.
Do browser settings affect DNS leaks?
Yes. Browser DNS-over-HTTPS can select a resolver other than the one supplied by the VPN. That does not automatically mean its HTTPS packets left the VPN tunnel; routing and split-tunnel rules determine the network path.
What should I do after I detect a leak?
Save the resolver-aware test result, verify the resolver owner and the VPN provider's expected behavior, adjust DNS or split-tunneling settings one at a time, and repeat the same unique-hostname measurement.