User Agents

Web browsers and everyday web tech, explained

How to Resolve a DNS Error: Quick Fixes That Work

· 5 min read · How the Web Works

In this article
  1. Fix a DNS Error in Order, Cheapest First
  2. The 30-Second Check That Solves Most Cases
  3. Flushing DNS Cache on Windows, Mac, Android and iPhone
  4. Switching to Public DNS Servers
  5. Router, ISP and Device: Pinning Down Which One Is Failing
  6. What the Error Messages Actually Mean

A DNS error means your device can't translate a website name into the address it needs to load it. Most cases clear in under a minute by restarting your router, flushing your device's DNS cache, or switching to a public DNS server.

Time 15 min · Steps 8 · Level Easy

Fix a DNS Error in Order, Cheapest First

  1. Reload the page and try another site. If only one site fails, the problem is usually that site's DNS, not yours, and waiting 10-15 minutes often clears it.
  2. Restart your router. Unplug it, wait 30 seconds, plug it back in and let it reconnect for 1-2 minutes. This renews your ISP's DNS connection and fixes a large share of DNS errors.
  3. Flush the DNS cache on your device. On Windows, open Command Prompt and run ipconfig /flushdns. On Mac, open Terminal and run sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder. Then reload the page.
  4. Restart the device itself. Phones and laptops keep their own DNS cache, and a reboot clears it along with stuck network settings.
  5. Forget and rejoin the Wi-Fi network. This forces the device to request fresh DNS settings from the router instead of reusing a broken entry.
  6. Switch to a public DNS server. Set your device or router to use Google DNS (8.8.8.8 and 8.8.4.4) or Cloudflare DNS (1.1.1.1 and 1.0.0.1). This bypasses your ISP's DNS entirely.
  7. Check for VPN or proxy interference. Disconnect any VPN and disable proxy settings, then reload. Re-enable them one at a time to find the culprit.
  8. Test on another device or network. If DNS errors follow your device everywhere, the device's network settings are at fault; if they follow the network, contact your ISP.

The 30-Second Check That Solves Most Cases

Before anything else, open a second website you haven't visited today. If that loads, your connection is fine and the failing site's DNS record is the problem — nothing on your end is broken, and the site will usually come back on its own. If nothing loads, the fault is between your device and your internet provider, so work through the fixes in order above.

A quick way to confirm which side is at fault: try loading a site by its raw address instead of its name. If the numbered address loads but the name doesn't, DNS is definitely the broken link, because everything else about your connection works.

Flushing DNS Cache on Windows, Mac, Android and iPhone

The cache is where your device remembers recent DNS lookups so pages load faster; a stale or poisoned entry can send you to the wrong place or nowhere at all. Clearing it forces a fresh lookup.

Windows

Open Command Prompt as administrator, then run ipconfig /flushdns. You should see a confirmation that the resolver cache was flushed. Follow it with ipconfig /release and ipconfig /renew if the error persists, which requests a whole new set of network settings from the router.

Mac

Open Terminal and run sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder. Enter your password when prompted. There's no success message on some versions, so just reload the page in your browser afterwards.

Android and iPhone

Phones don't expose a flush command, so a full restart does the same job. Hold the power button, restart the device, and rejoin Wi-Fi once it's back up.

Switching to Public DNS Servers

Changing DNS servers is the fix that most often resolves stubborn, recurring DNS errors, because it replaces your ISP's servers with ones run at a larger scale. Google's public DNS uses 8.8.8.8 and 8.8.4.4; Cloudflare's uses 1.1.1.1 and 1.0.0.1. Both are free.

On Windows, go to Settings > Network & Internet, open your connection's properties, and edit the DNS server assignment to enter the numbers manually. On a Mac, open System Settings > Network, select your connection, then DNS, and replace the listed servers. On Android, look under Settings > Network or Connections for Private DNS, and enter dns.google. On iPhone, go to Settings > Wi-Fi, tap the (i) next to your network, then Configure DNS manually. Exact labels can differ slightly by version.

To tell if it worked, save the settings, reload the failing page, and check that other sites still load normally. If pages load but feel slower than before, try the other provider's numbers — performance varies by region and provider.

Setting DNS on the router instead of the device covers every gadget in the house at once. Look for a DNS section in the router's web settings page, usually reached by typing 192.168.1.1 or 192.168.0.1 into a browser. After saving, restart the router so all devices pick up the new servers.

Router, ISP and Device: Pinning Down Which One Is Failing

Each cause has a tell. If DNS errors appear on every device in the house, the router or your ISP is the likely cause; if only one device struggles, its own settings are. If the error appears only when a VPN is on, the VPN's DNS is at fault — switch its server location or turn it off to confirm.

Restarting the router fixes the router side: unplug for 30 seconds, plug back in, wait 1-2 minutes for the lights to settle, then reload the page. If errors return within hours every time, your ISP's DNS servers are probably unreliable, and moving to public DNS servers (above) is the lasting fix. If errors persist even on public DNS, contact your ISP and report a DNS fault — at that point the problem sits outside your home.

One device-only case worth knowing: a firewall or security app can block DNS traffic on port 53. Temporarily disable the app, reload the page, and if that fixes it, add an exception for DNS in the app's settings rather than leaving it off.

What the Error Messages Actually Mean

"DNS server not responding" means your device got no reply at all — restart the router first, then change DNS servers. "DNS_PROBE_FINISHED_NXDOMAIN" in Chrome means the name didn't resolve to an address — flush the cache first, since a stale entry is the usual cause. "Server DNS address could not be found" usually points to the same thing. "DNS_PROBE_FINISHED_NO_INTERNET" means your connection itself dropped, so check Wi-Fi or your cable before touching DNS settings.

Each message has the same decision rule underneath: if the internet works but names don't resolve, it's DNS; if nothing works, it's the connection, and DNS fixes won't help until that's restored.

Official source: Google Android Help