Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

VPN DNS Error: Why It Happens and How to Fix It

· 5 min read · Home Networking

In this article
  1. Fix the DNS Error in Order of Least Effort
  2. Confirm Which Cause You Actually Have
  3. Quick Checks Before You Blame the VPN
  4. When the VPN Provider's Own DNS Is Down

A VPN DNS error almost always comes from a DNS leak, a blocked DNS server, or a stale DNS cache on your device. Flush the cache, switch your VPN protocol or DNS server, and check for leaks in that order.

Time 15 min · Steps 7 · Level Easy

A VPN DNS error usually means one of three things: your device is sending DNS requests outside the tunnel (a DNS leak) and something is blocking them, the VPN's own DNS servers are unreachable, or your device has cached a bad DNS answer from before you connected. Less often, the network you are on — a hotel, office or school Wi-Fi — forces its own DNS and blocks everything else. Work through the fixes below from cheapest to most involved; each one tells you how to confirm it worked.

Fix the DNS Error in Order of Least Effort

  1. Flush your DNS cache. On Windows, open Command Prompt and run ipconfig /flushdns. On macOS, open Terminal and run sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder. On Android, toggle Airplane mode on and off or restart the device. Confirm: reconnect the VPN and load a site that failed before.
  2. Restart the VPN app and reconnect. Close the app fully (not just minimise it) and connect to a different server in the same country. Confirm: the app connects and pages load within about 30 seconds.
  3. Switch the VPN protocol. In the app's settings, change from WireGuard to OpenVPN, or from UDP to TCP. Some networks block the fast UDP port 1194 but allow TCP on port 443. Confirm: the connection status shows the new protocol and browsing works.
  4. Set a public DNS server on your device. Try 1.1.1.1 (Cloudflare) or 8.8.8.8 (Google) in your network settings. Confirm: run a DNS leak test site while connected and see only the servers you set, not your ISP's.
  5. Turn off IPv6 if the VPN does not tunnel it. If DNS requests escape over IPv6, some sites fail while others load. Disable IPv6 in your network adapter settings. Confirm: a leak test shows no IPv6 address from your real location.
  6. Change your device's DNS settings to automatic. If you previously set a custom DNS that the VPN network blocks, set it back to automatic so the VPN can hand out its own. Confirm: the VPN's DNS server appears in a leak test.
  7. Reinstall or update the VPN app. A corrupted install can break the VPN's DNS handling. Confirm: after reinstalling and reconnecting, a leak test shows the VPN's servers only.

Confirm Which Cause You Actually Have

Before changing more settings, spend two minutes narrowing it down, because the right fix depends on the cause.

DNS leak

Open a DNS leak test site while connected to the VPN. If the results show your internet provider's DNS servers alongside or instead of the VPN's, your DNS requests are escaping the tunnel. That is the leak, and steps 4, 5 and 6 in the list above are the ones that address it. Many VPN apps have a built-in DNS leak protection or "forced DNS" setting — turn it on if present.

Blocked DNS server

If everything works on your home Wi-Fi but fails on one specific network, that network is likely blocking outside DNS. Confirm by connecting to the VPN on mobile data instead: if pages load, the network is the problem. Switching to TCP on port 443 (step 3) often gets through, or ask the network's administrator whether VPN use is allowed at all.

Stale cache

If only some sites fail while others load fine, a stale cache is the likely culprit — the cached answer predates the VPN connection and points to the wrong server. Flushing (step 1) fixes it, and it usually takes effect immediately. If the same sites keep breaking after a flush, the problem is upstream: the VPN's DNS servers themselves.

Quick Checks Before You Blame the VPN

Run through this short list to rule out the obvious:

  • Is the VPN actually connected, with the status showing an active tunnel, not just "connecting"?
  • Does a plain site like an ISP-independent homepage load, or does nothing load at all? Nothing at all points to the connection, not DNS.
  • Does the error mention DNS by name ("DNS_PROBE_FINISHED_NXDOMAIN" in Chrome is the classic one)? That confirms DNS rather than a routing fault.
  • Does it happen on every device on the network, or just one? One device points to that device's settings.
  • Did it start right after an app update or a new router setting? Roll back or undo the change and retest.

When the VPN Provider's Own DNS Is Down

If a leak test shows the VPN's DNS servers correctly but name resolution still fails, the provider's DNS servers themselves may be having trouble. You can usually confirm this by setting your device to a public DNS server (step 4) while connected: if browsing immediately works, the VPN's DNS was the weak link. This is a workable long-term setup for many people, though it means your DNS queries go to a public resolver rather than through the tunnel. If privacy from your ISP is the main reason you use a VPN, a public resolver still keeps DNS out of your ISP's hands — but the resolver itself sees your queries. Check the provider's own status page or support pages to see whether its DNS servers are having a known issue; if so, the fix is simply to wait or switch servers temporarily.

One more thing worth knowing: browser-level DNS (secure DNS or DNS-over-HTTPS in the browser's settings) can bypass the VPN's DNS entirely and cause confusing half-working states. If the problem persists, turn that browser setting off or set it to your chosen resolver so the browser and the system agree on one DNS path.

Official source: Cloudflare Support