DNS Leak Test: Check Your VPN for DNS Leaks
See which DNS servers your browser uses while your VPN is connected. Compare your results and learn how to spot a possible DNS leak.
- IP address checker
- DNS leak checker
Warning! Your IP address is visible and sites can identify you.
Not protected!
Your personal data and online activity are out in the open. Use VeePN to hide your IP address and protect your identity.
DNS requests are exposed!
Whoever runs your DNS servers can see the domain names you look up:
No DNS leaks detected
Your DNS requests go through your VPN.
Protected by
Nothing to worry about here — your Internet traffic is secure. Enjoy the web without external tracking and limits.
DNS requests are exposed!
Whoever runs your DNS servers can see the domain names you look up:
No DNS leaks detected
Your DNS requests go through your VPN.
How to Read Your DNS Leak Test Results
Run the test twice: once with your VPN off and once with it on. The first run shows the DNS servers your connection normally uses, usually your internet provider’s. Then compare the two results.
| What you see with the VPN on | What it likely means | What to do |
|---|---|---|
| New DNS servers you didn’t see without the VPN | Most likely no leak. Several servers at once are normal. | Nothing. Test again after you change networks, servers or settings. |
| The same DNS servers as in your test with the VPN off | Possible DNS leak: your requests may still go to your internet provider. | Turn on DNS leak protection and the kill switch in your VPN app, reconnect and test again. If nothing changes, follow the steps for your device below. |
| An unexpected DNS server in your own country while your VPN server is abroad | Possible leak, or a DNS setting in your browser or device that overrides the VPN’s DNS. | Turn off Secure DNS in your browser or Private DNS on Android and test again. If the result changes, that setting was the cause. |
| Your real IP address while the VPN is connected | The VPN isn’t routing your traffic at all. | Reconnect, try another server and check the IP address checker. |
What is a DNS Leak?
Domain Name System (DNS) is the Internet phonebook: it turns website names into IP addresses. A DNS leak happens when your device sends these lookups outside the encrypted VPN tunnel. Whoever answers them, usually your internet provider, can see the domain names your device requests, even though your VPN is on.
What a DNS Leak Exposes
- The domain names your device looks up, with timestamps, to your internet provider or the owner of the network.
- Your real connection and approximate location to the DNS operator, while websites see the VPN’s IP address.
- A way for the network to block or redirect sites by changing DNS answers.
What Causes DNS Leaks?
Most leaks come from one of these settings:
- The VPN app has no DNS leak protection, or the connection drops and there is no kill switch.
- Smart Multi-Homed Name Resolution in Windows sends each request to every network adapter, including the one outside the VPN.
- IPv6: the VPN tunnels IPv4 only, and your device sends IPv6 DNS requests directly.
- A transparent DNS proxy: some internet providers intercept DNS traffic and answer it themselves.
Secure DNS (DNS over HTTPS) in Chrome, Edge or Firefox isn’t a leak by itself, but it can make the browser use a DNS provider other than the one your VPN sets. That’s why it’s worth checking when the test shows an unexpected server.
To stay safe, use a VPN with DNS leak protection like VeePN, where your DNS queries stay encrypted inside the tunnel.
How to Fix a DNS Leak
Start with your VPN app, then open the section for your device. Run the DNS leak test again after each step to see what made the difference.
- VPN app
- Windows
- macOS
- Android
- iPhone & iPad
- Browsers
- Router
In Your VPN App
- Turn on DNS leak protection and the kill switch.
- Disconnect, connect again and rerun the test.
- If the result doesn’t change, switch the VPN protocol or server.
Windows 10 and 11
- Clear the DNS cache: open Command Prompt as administrator, run
ipconfig /flushdnsand reconnect the VPN. - If your VPN doesn’t support IPv6, open Control Panel › Network and Sharing Center › Change adapter settings, right-click your connection, choose Properties and uncheck Internet Protocol Version 6 (TCP/IPv6).
- Turn off Smart Multi-Homed Name Resolution: open Group Policy Editor (
gpedit.msc), go to Computer Configuration › Administrative Templates › Network › DNS Client and enable “Turn off smart multi-homed name resolution”.
Advanced: Windows Home (no Group Policy Editor)
Open Registry Editor, go to HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient, create a DWORD value DisableSmartNameResolution and set it to 1. Restart your computer.
Rather skip Group Policy and adapter settings? VeePN for Windows has built-in DNS leak protection, so your DNS requests stay inside the encrypted tunnel.
macOS
- Open System Settings › Network, select your connection, click Details › DNS and remove DNS servers you added manually.
- Clear the DNS cache in Terminal:
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder - Reconnect the VPN and rerun the test.
Don’t want to edit network settings by hand? VeePN for Mac keeps your DNS requests inside the encrypted tunnel with built-in DNS leak protection.
Android
- Open Settings › Network & internet › Private DNS, choose Automatic or Off and rerun the test. A custom Private DNS hostname can override your VPN’s DNS.
- Open Settings › Network & internet › VPN, tap the gear next to your VPN app and turn on Always-on VPN and Block connections without VPN.
Menu names differ slightly between phone brands.
Set VeePN for Android as your Always-on VPN, and its built-in DNS leak protection keeps your lookups inside the tunnel.
iPhone and iPad
- Open Settings › Wi-Fi, tap ⓘ next to your network and set Configure DNS to Automatic.
- In Settings › General › VPN & Device Management, remove DNS profiles you don’t use.
- Keep one VPN app connected at a time, then reconnect and rerun the test.
One VPN app at a time works best on iPhone. Make it VeePN for iOS, with built-in DNS leak protection.
Chrome, Edge and Firefox
Secure DNS isn’t a leak by itself. Turn it off as a check: if the unexpected DNS server disappears from the test, this setting was the cause.
- Chrome: Settings › Privacy and security › Security › Use secure DNS.
- Edge: Settings › Privacy, search, and services › Security › Use secure DNS.
- Firefox: Settings › Privacy & Security › DNS over HTTPS, choose Off.
Router
- Open the router’s admin panel and check the DNS fields in the WAN or DHCP settings.
- If the router runs the VPN, set DNS to your VPN provider’s servers. If it doesn’t, leave DNS on automatic.