User Agents

Web browsers and everyday web tech, explained

DNS Fetch Error: What It Means and How to Fix It

· 5 min read · How the Web Works

In this article
  1. What a DNS Fetch Error Actually Is
  2. What Is Normal and What Is Not
  3. Symptom, Likely Cause and Fix
  4. Fixes for the Real Problems
  5. How to Tell the Fix Worked
  6. Keeping DNS Errors from Coming Back

A DNS fetch error means your device asked a DNS server to turn a web address into an IP address and got no usable answer. Most cases clear up by restarting your router, switching to a public DNS service like 1.1.1.1 or 8.8.8.8, or flushing the DNS cache on your device.

Time 15 min · Steps 6 · Level Easy

What a DNS Fetch Error Actually Is

  1. DNS translates names to numbers. When you type a web address, your device asks a DNS server for the site's IP address before it can load anything.
  2. The error means the lookup failed. The server never replied, replied too slowly, or returned an answer your device could not use, so the page never starts loading.
  3. Only one site failing points to that site. If a single domain shows the error while others load, the problem is usually on the site's side, not yours.
  4. Every site failing points to your connection. If nothing resolves, your router, your DNS settings or your internet provider's DNS servers are the likely cause.
  5. Intermittent errors often mean a slow DNS server. Pages sometimes load and sometimes don't, which points to timeouts rather than a hard failure.
  6. Some errors are deliberate blocks. Schools, workplaces and parental-control filters can return DNS errors for blocked domains, and that is expected behaviour, not a fault.

What Is Normal and What Is Not

A first visit to a site taking a second or two longer than later visits is normal: the DNS answer gets cached, so repeat lookups are instant. A brief DNS hiccup during a router restart is normal too, and devices usually recover on their own within a minute or two.

What is not normal: the error persists for more than a few minutes, appears on many different sites, follows you across browsers, or comes back every day at the same time. Those patterns mean something in the chain between you and the DNS server needs a real fix, not a reload.

Symptom, Likely Cause and Fix

SymptomLikely causeFix
One site fails, everything else loadsThe site's own DNS records are broken or its domain has expiredWait and retry later; try a DNS lookup tool on another network to confirm it is not your side
All sites fail after a router or device restartStale DNS cache or the router lost its DNS settingsFlush the DNS cache, then restart the router again and let it fully reconnect
Pages load slowly or only sometimesYour provider's DNS server is slow or overloadedSwitch to a public DNS service such as 1.1.1.1 or 8.8.8.8
Error only on one phone or laptopThat device's DNS settings or cacheSet DNS manually on that device or reset its network settings
Error only at school or workA network filter blocking the domainExpected behaviour of the filter; ask the network administrator if the site should be allowed
Error right after changing DNS settingsA typo in the DNS addressRe-enter the addresses carefully, for example 1.1.1.1 and 1.0.0.1

Fixes for the Real Problems

Flush the DNS cache

This clears old or bad answers your device stored. 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, restarting the device clears the cache. Then reload the page; if the error was caused by a stale entry, it is gone immediately.

Switch to a public DNS service

On your router, open the admin page (usually reached by typing 192.168.1.1 or 192.168.0.1 into the address bar) and find the DNS or internet settings; exact labels differ by router and version. Replace the DNS servers with 1.1.1.1 and 1.0.0.1, or 8.8.8.8 and 8.8.4.4, save, and restart the router. This fixes every device on the network at once. To fix a single device instead, go to its network settings: on Android, Settings > Network & internet > Private DNS; on iOS, Settings > Wi-Fi > the (i) next to your network > Configure DNS; on Windows, Settings > Network & internet > adapter properties > DNS server assignment. Menu names can differ slightly by version.

Restart the router properly

Unplug it, wait about 30 seconds, and plug it back in. This makes your provider hand the router fresh DNS settings when it reconnects. If the DNS error started right after an outage or a router restart, this alone often clears it.

Confirm it is not the site itself

Try loading the site on mobile data, with Wi-Fi off. If it loads there, the problem is your Wi-Fi network's DNS. If it fails on mobile data too, the site's own DNS is broken and there is nothing to fix on your side; check the site's status page or social account if it has one.

How to Tell the Fix Worked

After each change, open a couple of sites you have not visited recently, so the answer cannot come from cache. If pages load within a second or two and the DNS error does not return over the next hour of normal browsing, the fix held. On a computer you can also test DNS directly: in Command Prompt or Terminal, run nslookup example.com and check that it returns an IP address rather than a timeout or server failure. A reply in under about 100 milliseconds from a public DNS server is a healthy response time.

Keeping DNS Errors from Coming Back

Leave the public DNS servers set on your router rather than reverting to automatic, so a slow provider server never becomes the single point of failure again. If you ever change internet providers or routers, re-enter the DNS addresses, because a new setup may reset them. Note your working settings somewhere you can find them, and if the error ever returns, you can compare against what worked. If errors keep recurring on one provider's line even with public DNS, report it to the provider, since repeated DNS timeouts on an otherwise working connection point to a line or equipment fault on their side.

Official source: Cloudflare Support