User Agents

Web browsers and everyday web tech, explained

Keep Getting a DNS Error? How to Find the Cause and Fix It

· 6 min read · How the Web Works

In this article
  1. Fix a DNS Error in Order, Cheapest Test First
  2. What a DNS Error Actually Means
  3. Which DNS Problem Do You Have?
  4. The Website's Own DNS Records Are Broken
  5. Your Device's DNS Cache Is Stale
  6. Your Router or Provider's DNS Servers Are Down
  7. A VPN, Firewall or Security App Is Blocking Lookups
  8. How to Set a Public DNS Server on Each Device
  9. Why the DNS Error Keeps Coming Back

A DNS error means your device cannot translate a website name into the address it needs to connect to. Most of the time it is fixed by restarting your router, flushing your device's DNS cache, or switching to a public DNS server like Google's (8.8.8.8) or Cloudflare's (1.1.1.1).

Time 15 min · Steps 8 · Level Easy

Fix a DNS Error in Order, Cheapest Test First

  1. Rule out one bad site. Try two or three other websites. If they load, the problem is that site's DNS records, not your setup, and waiting usually fixes it.
  2. Restart your router. Unplug it, wait 30 seconds, plug it back in and wait about 2 minutes for the lights to settle. This clears the router's own DNS cache and forces a fresh connection.
  3. Flush the DNS cache on your device. On Windows, open Command Prompt and run ipconfig /flushdns. On macOS, open Terminal and run sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder. On Android and iOS, toggling airplane mode on and off for 10 seconds does the same job.
  4. Check another device on the same network. If your phone fails on Wi-Fi but works on mobile data, the fault is in the router or your internet provider, not the phone.
  5. Switch to a public DNS server. Set your device or router to use 8.8.8.8 and 8.8.4.8 (Google) or 1.1.1.1 and 1.0.0.1 (Cloudflare) instead of automatic DNS.
  6. Try a different network. Mobile data or a friend's Wi-Fi tells you whether the problem follows the device or stays with your connection.
  7. Check for VPN or security software. Disable the VPN or firewall temporarily. If pages load, re-enable it and change its DNS settings.
  8. Contact your internet provider. If everything above fails, the provider's DNS servers may be down, and only they can confirm and fix that.

What a DNS Error Actually Means

Every website name has to be looked up in the Domain Name System and turned into a numeric address before your browser can connect. A DNS error means that lookup failed, so the browser never even tries to reach the site. The message you see varies: Chrome shows "DNS_PROBE_FINISHED_NXDOMAIN" or "DNS_PROBE_FINISHED_NO_INTERNET", Safari says it cannot find the server, and Windows may report "DNS server not responding". All of them point at the same broken link in the chain between your device and the internet.

Which DNS Problem Do You Have?

Work out which of the four usual suspects you are dealing with before changing settings, because the fixes differ. Test in this order: one failing site points at the website itself; every site failing on one device points at that device's cache or settings; every site failing on every device points at the router or your provider; failures only when a VPN runs point at the VPN. Each of the sections below tells you how to confirm one of these and what to do about it.

The Website's Own DNS Records Are Broken

If only one site fails while others load, the problem is usually on the website's side. Confirm it by asking a friend on a different network to open the same site, or by checking the site on mobile data. If it fails there too, nothing on your device needs fixing. Website owners update their DNS records during moves, and a mistake can make the site unreachable worldwide for anywhere from a few minutes to a couple of days until the records are corrected and spread. Retry after an hour or so.

Your Device's DNS Cache Is Stale

Your device stores recent DNS lookups to speed things up, and a stale or corrupted entry can block sites that actually work fine. Confirm it by trying the same site in another browser on the same device; if the error follows the browser, clear that browser's cache from its settings menu instead. The fix is to flush the cache as in step 3 above, then restart the device. On Windows, also run ipconfig /release then ipconfig /renew in Command Prompt to get a fresh network configuration. Menu and command names can differ slightly by system version.

Your Router or Provider's DNS Servers Are Down

When every site fails on every device in the house, the router or your internet provider's DNS servers are the likely cause. Confirm it by checking whether messaging apps still work while browsers do not; some apps use their own lookups and keep working through a DNS outage. Restart the router first, as in step 2. If that does not help, set public DNS servers in the router itself so every device in the house uses them: look for the DNS setting in the router's admin page, usually reached by typing 192.168.1.1 or 192.168.0.1 into a browser, and enter 8.8.8.8 as the primary and 8.8.4.8 as the secondary. If problems continue after that, call your provider; an outage on their end is something only they can resolve.

A VPN, Firewall or Security App Is Blocking Lookups

VPNs and some security software intercept DNS requests, and a crash or bad setting in them produces errors that look identical to a provider outage. Confirm it by turning the VPN or security app off for a few minutes and reloading the page. If pages load, turn it back on and check its DNS settings, or reinstall it. On Windows, the built-in firewall rarely causes this on its own, but third-party security suites sometimes do; their network or web protection module is the setting to look for. Setting the device to a public DNS server, as in step 5, often works around the interference.

How to Set a Public DNS Server on Each Device

Changing to a public DNS server is the single most effective fix for recurring DNS errors. On Windows, go to Settings > Network & internet, open your connection's properties, then edit the DNS server assignment and enter 8.8.8.8 and 8.8.4.8. On macOS, open System Settings > Network, click Details on your connection, then DNS, and add the same addresses. On Android, look under Settings > Network or Private DNS and enter a hostname such as one.one.one.one; the exact label differs by version. On iPhone, Settings > Wi-Fi, tap the (i) next to your network, then Configure DNS > Manual. After changing it, restart Wi-Fi and reload the page. If errors stop completely, keep the setting; it is safe and often faster than the defaults.

Why the DNS Error Keeps Coming Back

Recurring errors usually mean one of three things. If they return after days or weeks, your provider's DNS servers are probably unreliable, and permanently switching to a public DNS server in the router fixes it. If they happen only on one device, that device's cache or a security app on it is the culprit. If they happen at the same time as slow or dropping connections generally, the router itself is aging or overheating; move it away from enclosed spaces, and if the pattern continues, a replacement router is the practical answer. None of this needs a technician; DNS settings are user-level and reversible at any time.

Official source: Microsoft Support