How to fix a DNS leak
A DNS leak means your device is sending lookups to a DNS server you didn't choose, often your ISP's. That server can then see which sites you visit. If you don't use a VPN or custom DNS, seeing your ISP in the results is normal.
Start here (all devices)
- Turn on your VPN's leak protection. Most VPN apps have a "DNS leak protection" or "kill switch" setting. This fixes most leaks.
- Check IPv6. If your VPN doesn't support IPv6, lookups can go out over it. Turn on the VPN's IPv6 protection, or turn off IPv6.
- Check your browser. Chrome, Edge and Firefox have a "Secure DNS" setting that can send lookups to its own provider instead of your VPN's. Turn it off or point it at your VPN's DNS.
- Re-test after each change. Restart the browser first.
Windows
- Set DNS under Settings > Network & internet > [your connection] > DNS server assignment > Edit. Windows 11 also offers DNS over HTTPS here; Windows 10 does not.
- Windows can send lookups through every network adapter at once. On Pro editions, turn this off in Group Policy: Computer Configuration > Administrative Templates > Network > DNS Client > Turn off smart multi-homed name resolution.
- Clear the cache:
ipconfig /flushdns
macOS
- Set DNS in System Settings > Network > [your connection] > Details > DNS.
- iCloud Private Relay changes which servers show up in the test, since it routes Safari traffic through two separate relays. Turn it off while testing your VPN.
- Clear the cache:
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
Linux
- Most distros use systemd-resolved. See which DNS server each connection uses:
resolvectl status - If your VPN connection has no DNS server listed, your VPN client isn't setting DNS. Use the provider's app or NetworkManager, which handle this.
- Force all lookups through the VPN. Replace
wg0with your VPN interface name.sudo resolvectl domain wg0 '~.' - Clear the cache:
resolvectl flush-caches
Android
- Go to Settings > Network & internet > VPN, tap the gear next to your VPN, and switch on Always-on VPN and Block connections without VPN.
- Private DNS (Settings > Network & internet > Private DNS) can override your VPN's DNS. If your VPN provides DNS, set it to Off or Automatic. Without a VPN, enter a provider such as
one.one.one.oneordns.quad9.net. - Menu names vary by phone maker. Search Settings for "VPN" or "Private DNS".
iPhone and iPad
- iOS has no system-wide leak setting, so check your VPN app's settings for leak protection or a kill switch.
- To set DNS for a Wi-Fi network: Settings > Wi-Fi > (i) next to your network > Configure DNS > Manual. This doesn't apply to mobile data.
- For encrypted DNS on every network, install a provider's DNS app or profile, such as Cloudflare's 1.1.1.1 app.
- iCloud Private Relay affects results here too. Turn it off while testing your VPN.
Router
Setting DNS on your router covers every device on your network.
- Log in to the router's admin page (the address is often on a sticker on the router). Find DNS under WAN, Internet or DHCP settings and enter your chosen servers.
- Some ISP routers lock this setting. Set DNS on each device instead, or use your own router.
- Some ISPs intercept DNS traffic whatever you set. If the test still shows your ISP, use encrypted DNS (DoH or DoT) on your devices, or a VPN.
- If the router runs your VPN, set its DNS to the VPN's servers.
Still leaking?
Press “Explain with AI” on your result, then paste it into an AI assistant or send it to your VPN provider's support team. They can tell you which settings to change in their app.
Run the test again© 2026 DNS Leak Audit