What Is a DNS Leak?
A VPN should hide every website you visit from your broadband provider. A DNS leak quietly gives some of that away. Here is what a DNS leak is, how to spot one and how to stop it for good.
The Short Answer
In one line: a DNS leak happens when your device asks your broadband provider, rather than your VPN, to look up the websites you visit, so your provider can still see a list of the sites you go to even though the VPN is switched on.
How DNS Works, and Where the Leak Happens
Every time you type a web address, your device first has to turn that name into the numeric address of the server behind it. That lookup is handled by the Domain Name System, or DNS. At home, the DNS server you use is normally run by your broadband provider, which means your provider receives a request for every site you visit.
When a VPN is working properly, those lookups travel inside the encrypted VPN tunnel to a DNS server run by the VPN provider. Your broadband provider sees only encrypted traffic going to the VPN. A DNS leak is when some or all of those lookups escape the tunnel and go to your provider's DNS server instead. The pages themselves are still encrypted, but the list of sites you looked up is not private any more.
That matters in the UK because broadband providers can be required to keep records of the internet connections their customers make. Our guide to ISP logging in the UK explains what providers can see and keep.
What Causes a DNS Leak
Most leaks come from one of a few everyday causes:
Manual or badly configured VPN set ups
If you set up a VPN by hand, for example on a router or through your device's built in VPN settings, it may keep using your provider's DNS servers unless you change them. A provider's own app normally handles this for you.
Operating system shortcuts
Some operating systems send DNS requests over whichever network connection answers first, rather than always through the VPN. Good VPN apps block this behaviour while you are connected.
IPv6 traffic
Many UK broadband lines now support IPv6, the newer form of internet address. If a VPN only handles the older IPv4 traffic, lookups and connections over IPv6 can slip outside the tunnel.
A dropped VPN connection
If the VPN disconnects for a moment, for example when your Wi-Fi changes, your device can fall back to your normal connection and normal DNS without telling you. A kill switch stops this by blocking traffic until the VPN reconnects. Our kill switch guide explains how it works.
The Best VPNs for Avoiding DNS Leaks
Both of our picks run their own DNS and build leak protection into their standard apps, so there is nothing extra to set up.
NordVPN's apps send your DNS lookups to NordVPN's own DNS servers through the encrypted tunnel, and the provider lists DNS leak protection as a standard feature. Its kill switch blocks your connection if the VPN drops, so a brief disconnection does not hand your lookups back to your broadband provider.
- ✓ NordVPN's own DNS servers used by default
- ✓ Kill switch to stop traffic leaking if the connection drops
- ✓ Up to 10 devices on one subscription
- ✓ Apps for Windows, Mac, iPhone, Android and more
Surfshark runs private DNS on its servers and lists DNS leak protection among the features in its apps, so your lookups stay inside the VPN tunnel while you are connected. With a kill switch and unlimited devices, one subscription can protect every phone, tablet and laptop in the house.
- ✓ Private DNS on Surfshark's servers
- ✓ DNS leak protection in the standard apps
- ✓ Unlimited devices on one subscription
- ✓ Kill switch included
How to Check for a DNS Leak
It takes a couple of minutes, and it is worth doing whenever you set up a VPN on a new device:
Note your normal DNS
With the VPN switched off, open a DNS leak test website in your browser and run the standard test. The results will usually name your broadband provider.
Connect your VPN and test again
Connect NordVPN or Surfshark, refresh the page and run the same test. The DNS servers listed should now belong to your VPN provider, not to your broadband company.
Fix anything that still shows your provider
If your broadband provider still appears, update the VPN app, use the provider's app rather than a manual set up, and turn on the kill switch. Our guide to checking your VPN is working covers the other checks worth running.
Check your browser too
Browsers can reveal your real IP address through a feature called WebRTC, which is used for video calls in the browser. Many leak test websites check for this at the same time, and a VPN app or browser extension from your provider can help block it.
Frequently Asked Questions
Keep Every Lookup Private
NordVPN and Surfshark both run their own DNS and build leak protection into their standard apps, with a 30 day money back guarantee.
Affiliate links, we may earn a commission at no extra cost to you.
