How to Test for DNS Leaks — And Fix Them Permanently
Even when a VPN encrypts your browsing traffic, a DNS leak quietly sends every domain name you visit to your ISP’s DNS servers. Learn how to test for DNS leaks accurately and lock down Windows, macOS, browsers and mobile devices.
Quick steps
Disconnect your VPN and note your normal ISP DNS IP and country on InstantIPCheck.com.
Connect your VPN to a server in a different region.
Open the DNS Leak Test (or Extended DNS Leak Test) and inspect every reported resolver.
Confirm zero resolvers belong to your ISP or physical home region; apply fixes and re-test if any match.
What is a DNS leak and why does it matter?
Every time you visit a site, your device asks a Domain Name System (DNS) resolver to translate the domain name into an IP address. When a VPN is configured properly, those DNS queries travel inside the encrypted tunnel and exit through the VPN’s own private resolvers.
A DNS leak happens when your operating system or browser ignores the tunnel and sends domain lookups straight to your ISP’s default DNS servers (or a local router forwarder). Your ISP may not see the page content over HTTPS, yet it still receives a timestamped log of every domain you access — and websites see a country mismatch between your VPN IP and your resolver.
How a DNS leak test detects leaked resolvers
A DNS leak test generates unique, uncached subdomains in your browser and triggers lookups for them. Because no cache holds those random names, your recursive DNS resolver must contact the test’s authoritative server.
InstantIPCheck records the IP address, ISP/organization and country of every resolver that made the lookup. Compare those resolvers with your VPN server: if your public IP is in Germany on a VPN ASN while your DNS resolver belongs to your home broadband provider in your home country, you have a DNS leak.
Why DNS leaks happen even with reputable VPNs
DNS leaks are usually caused by operating-system behavior rather than broken encryption. Knowing the common culprits makes fixing them straightforward:
Windows Smart Multi-Homed Name Resolution (SMHNR): Windows sends parallel DNS queries across all active network adapters and accepts the fastest answer — often your ISP outside the VPN.
Browser DNS-over-HTTPS (DoH) overrides: Chrome, Edge or Firefox configured with a custom DoH provider can route queries independently of the OS VPN DNS.
Un-tunneled IPv6 DNS: A router advertising IPv6 DNS servers can answer AAAA lookups outside an IPv4-only VPN tunnel.
Manual static DNS settings: Hardcoding 8.8.8.8 or ISP DNS on a Wi-Fi adapter can override DHCP DNS pushed by the VPN client.
How to fix DNS leaks on Windows, macOS, browsers and mobile
Start inside your VPN application: enable DNS leak protection, enable the internet kill switch, and disable split tunneling while testing. Next, reset your Wi-Fi or Ethernet adapter DNS settings back to Automatic (DHCP) so manual resolvers do not fight the VPN.
On Windows, modern WireGuard and OpenVPN clients add firewall rules blocking port 53 outside the tunnel; ensure you are using the vendor’s native app rather than a bare OS L2TP profile. In Chrome, Edge and Firefox, set Secure DNS (DoH) to use your current service provider rather than a hardcoded third-party resolver unless you intentionally want that resolver.
If your router hands out IPv6 DNS while your VPN only tunnels IPv4, enable IPv6 leak blocking inside the VPN client or disable IPv6 on the local adapter, then re-test immediately.
Standard vs extended DNS leak testing
A quick homepage DNS check shows the primary resolver handling your connection. Because multi-resolver setups (such as load-balanced ISP farms or fallback resolvers) sometimes only leak on a fraction of requests, running an extended test collects multiple observations including EDNS Client Subnet (ECS) and DNSSEC clues.
Always test twice: once right after connecting your VPN, and once after switching Wi-Fi networks or waking your laptop from sleep — when OS DNS routing tables most often drift.
How to read DNS leak test results
Public IP
DNS Resolver Shown
Verdict
VPN server (e.g., Netherlands)
VPN provider’s DNS (Netherlands)
Pass — DNS is inside the tunnel
VPN server (e.g., Netherlands)
Your home ISP DNS (home country)
DNS Leak — fix VPN/OS DNS settings
VPN server (e.g., Netherlands)
Cloudflare / Quad9 DoH you enabled
Expected if intentional DoH; still distinct from VPN ASN
No VPN (home ISP)
Your ISP or chosen public DNS
Normal baseline (no tunnel active)
Frequently asked questions
Is seeing Cloudflare (1.1.1.1) or Google (8.8.8.8) a DNS leak?
Not automatically. If you deliberately configured Cloudflare, Quad9 or Google DNS (or your browser’s Secure DNS uses them), seeing those resolvers is expected. A leak is when your ISP’s resolver answers queries that should stay inside your VPN.
Does DNS-over-HTTPS (DoH) prevent DNS leaks?
DoH encrypts DNS between your browser and the DoH provider so your ISP cannot read queries, but it does not force DNS through your VPN exit — meaning sites may still notice a geo mismatch between your VPN IP and DoH resolver.
How often should I run a DNS leak test?
Run a quick test whenever you install a new VPN, update Windows/macOS, change browser DNS settings, or switch between Wi-Fi and mobile networks.