User Agents

Web browsers and everyday web tech, explained

DNS Lookup Failed: Quick Fixes That Usually Work

· 5 min read · How the Web Works

In this article
  1. Fixing DNS Lookup Failed, Step by Step
  2. Why DNS Lookup Fails on One Device but Not Others
  3. When the Router or Your Internet Provider Is the Cause
  4. Is the Website Itself Down?
  5. Stopping the Error from Coming Back
  6. What a DNS Lookup Actually Does

A "DNS lookup failed" error means your browser could not translate a website's name into an address, usually because of a network hiccup, a bad DNS server, or a stale DNS cache on your device. Restarting your router and switching to a public DNS server fixes it in most cases.

Time 10 min · Steps 8 · Level Easy

The fastest fix for most people: restart your router and switch your DNS to a public server like Google's (8.8.8.8 and 8.8.4.4) or Cloudflare's (1.1.1.1 and 1.0.0.1). DNS is the internet's phone book: when you type a site name, DNS looks up the matching numeric address. When that lookup fails, the site is not necessarily down — your device, your router, or your internet provider's DNS server simply could not complete the lookup.

Fixing DNS Lookup Failed, Step by Step

  1. Reload the page and try another site. If only one site fails, that site's own DNS may be broken, and there is nothing to fix on your side — try again in a few minutes.
  2. Restart your router and modem. Unplug both from power, wait about 30 seconds, plug the modem back in first, wait until its lights settle, then plug in the router. This clears the router's 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, toggle Airplane mode on and off; on an iPhone, toggle Airplane mode.
  4. Try another network. Switch your phone to mobile data, or connect your laptop to your phone's hotspot. If browsing works there, the problem is your router or your internet provider's DNS, not your device.
  5. Change your DNS servers. In your device or router settings, replace automatic DNS with 8.8.8.8 and 8.8.4.4 (Google) or 1.1.1.1 and 1.0.0.1 (Cloudflare). This bypasses a faulty DNS server run by your internet provider.
  6. Restart the device you are browsing on. A reboot clears any stuck network settings on your computer, phone, or tablet.
  7. Check for a VPN, proxy, or security app. Disable it temporarily. If the error disappears, the app's DNS handling is the culprit — update it or change its DNS settings.
  8. Reset your network settings if nothing else works. On Windows, go to Settings > Network & internet > Advanced network settings > Network reset. On a phone, look under Settings > General management or Settings > General for a reset option. This wipes saved Wi-Fi passwords, so have them handy.

Why DNS Lookup Fails on One Device but Not Others

When a single laptop or phone shows the error while the rest of the house browses fine, the device itself is the problem. The two usual suspects are a stale local DNS cache and a misconfigured network adapter. Flushing the cache (step 3) handles the first. For the second, make sure the device is set to obtain DNS automatically, or better, set the public DNS addresses manually in the adapter's settings — on Windows that is Settings > Network & internet > your connection > DNS server assignment; exact labels differ slightly by version. Also check that a browser extension or privacy app is not routing DNS through a service that has stopped responding.

When the Router or Your Internet Provider Is the Cause

If every device in the house fails, the fault sits upstream of them. Confirm it by testing mobile data on your phone: if pages load on data but not Wi-Fi, your router or provider is at fault. A router reboot fixes the router's cached records. If the error keeps returning after reboots, your internet provider's DNS servers are likely unreliable, and entering 8.8.8.8 and 8.8.4.4 or 1.1.1.1 and 1.0.0.1 in the router's DNS settings fixes every device at once — look for a DNS section in the router's admin page, usually reached by typing 192.168.1.1 or 192.168.0.1 into a browser. Check the sticker on the router for the exact admin address and login, since these differ by model.

Is the Website Itself Down?

Sometimes the error is not yours at all. The site's owner may have broken DNS records, or their DNS provider may be having an outage. Confirm by asking a friend on a different network to open the same page, or by checking a site-status page from your phone on mobile data. If the site fails everywhere, wait — only the site's operator can fix it. One caution: a DNS failure alone does not mean a site is unsafe, but if a site that normally loads suddenly shows a DNS error and you were redirected there from a strange link, close the tab rather than retrying repeatedly.

Stopping the Error from Coming Back

Setting a reliable public DNS server on your router is the single best prevention, because every device in the home then uses it automatically. Keep your router's firmware updated through its admin page. If you run a VPN or security suite, keep it updated too, since outdated versions are a common source of recurring DNS failures. After changing DNS servers, a browser restart is usually enough for the new settings to take effect; if a site still will not load, flush the cache once more.

What a DNS Lookup Actually Does

Every website lives at a numeric address, such as 142.250.185.78. People type names, so DNS servers translate them. Your device first checks its own cache, then asks the router, which asks your provider's DNS server, which in turn asks the wider DNS system. The "lookup failed" error means that chain broke somewhere — and the steps above simply test each link, from your device outward, until you find the broken one.

Official source: Google Android Help