What is a DNS Leak and How Do You Check for One?

You’ve installed a VPN, you’ve hit connect and the little icon says you’re protected. Job done, right? Most of the time, yes. But there’s one sneaky problem that can quietly undo a lot of that good work without you ever noticing, and it’s called a DNS leak.
To understand it, you need to know a little about how the internet finds things. Every time you type a web address into your browser, your device first has to look up the numerical IP address behind that name. It does this by asking a DNS (Domain Name System) server, which works a bit like a phone book for the internet. Normally, that phone book belongs to your internet provider.
When your VPN is working properly, those lookups travel through the encrypted VPN tunnel and are answered by your VPN provider’s own DNS servers. A DNS leak happens when some or all of those requests slip outside the tunnel and go straight to your internet provider instead. Your actual traffic might still be encrypted, but your provider (and anyone else watching the network) can see a complete list of every website you visit.
If your DNS requests leave the tunnel, your VPN is only doing half its job.
Leaks usually aren’t the result of anything you’ve done wrong. The most common causes include:
- Operating system shortcuts – some versions of Windows send DNS requests to every available network at once and use whichever answers first.
- Manually set DNS servers – if you’ve changed your DNS settings in the past, your device may keep using them even with the VPN on.
- IPv6 traffic – older or more basic VPN apps only protect IPv4 traffic, leaving IPv6 lookups out in the open.
- Your internet provider – a few providers quietly intercept DNS requests and answer them themselves.
The good news is that checking for a leak takes less than a minute. Connect to your VPN, then visit any free DNS leak test website. It will list the DNS servers your requests are reaching. If you see your VPN provider’s servers, you’re fine. If you see your internet provider’s name or servers in your home country while you’re connected somewhere else, you have a leak.
If you’re comfortable with the command line, you can also see which DNS server your computer is using. On Windows, open Command Prompt and type nslookup example.com and check the “Server” line at the top of the result. On a Mac, scutil --dns in Terminal lists every resolver your system is configured to use.
Found a leak? Start by turning on the DNS leak protection setting in your VPN app, as most good services include one, and switch off IPv6 if your VPN doesn’t support it. Then clear out any old lookups your computer has saved by running ipconfig /flushdns on Windows, or sudo dscacheutil -flushcache on a Mac, and run the test again.
If the leak keeps coming back, it may be time to look elsewhere. A quality VPN should handle DNS for you automatically, with no tinkering required, and that’s well worth putting on your checklist when you compare providers.