Smart Systems for Home

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

DNS Error on WiFi? What It Means and How to Fix It

· 5 min read · Home Networking

In this article
  1. What to Try First, in Order
  2. Is It Really DNS, or Is the WiFi Down?
  3. Why the Router's DNS Stops Working
  4. How to Set DNS on Your Phone or Laptop
  5. When the Device Itself Is the Problem
  6. Stopping DNS Errors From Coming Back
  7. Quick Checks Before You Dig Deeper

A DNS error on WiFi usually means your device connected to the router fine, but can't translate website names into addresses. Restart the router, then flush DNS and switch to a public DNS server like 8.8.8.8 — that fixes most cases.

Time 15 min · Steps 7 · Level Easy

What to Try First, in Order

  1. Restart the router. Unplug it, wait 30 seconds, plug it back in and wait 2-3 minutes for the lights to settle. This clears the router's own DNS cache and forces it to request fresh DNS settings from your internet provider.
  2. Restart the device. Phone, laptop or tablet — a reboot clears the device's DNS cache and renews its WiFi connection from scratch.
  3. Test another device. If a second device on the same WiFi also fails, the problem is the router or your internet provider, not your device.
  4. Try one website by number. Enter 8.8.8.8 or 1.1.1.1 in the browser address bar. If a page loads by number but not by name, DNS is definitely the fault.
  5. Forget and rejoin the WiFi network. In Settings, choose the network, tap Forget, then reconnect with the password. This refreshes the DNS settings the device received from the router.
  6. Flush DNS on a computer. On Windows, open Command Prompt and run ipconfig /flushdns. On a Mac, open Terminal and run sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder. On Linux, run sudo systemd-resolve --flush-caches or restart the resolver service.
  7. Set a public DNS server. Enter 8.8.8.8 (Google) or 1.1.1.1 (Cloudflare) manually in your device or router DNS settings. If websites load immediately after this, your provider's DNS servers were the cause.

Is It Really DNS, or Is the WiFi Down?

A DNS error is actually a good sign: it means your device is connected to the router and has an IP address. The connection chain is working up to the point where names get looked up. If the WiFi itself were down, you'd see "connected, no internet" or the network wouldn't accept your password at all.

The number test settles it. Type 8.8.8.8 into the browser. A page or error response from that address means traffic flows and only name lookup is broken. No response at all means the connection is down — that's an outage or router problem, and DNS settings won't help until it's fixed.

Also check whether the error appears on every site or just one. A single site failing is usually that site's own DNS record, and it resolves on its own within a few hours.

Why the Router's DNS Stops Working

The router hands every device its DNS settings when it joins the network, and those settings point at your internet provider's DNS servers. If those servers get overloaded or go down briefly, every device in the house shows DNS errors at once. Confirm it by testing a second device: if both fail, it's the router or provider side.

The fix is the restart above, and if it keeps happening, set a public DNS server directly in the router's admin page (usually reached by entering 192.168.1.1 or 192.168.0.1 in a browser, then signing in). Look for a DNS section in the WAN or internet settings and enter 8.8.8.8 with 8.8.4.4 as the backup, or 1.1.1.1 with 1.0.0.1. Menu names differ between router models and versions. Setting it in the router fixes every device at once, which beats changing each phone and laptop one by one.

How to Set DNS on Your Phone or Laptop

If only one device has the problem, change DNS on that device. On Android, go to Settings > Network & internet, tap Private DNS and enter dns.google (labels differ slightly by version). On iPhone, go to Settings > Wi-Fi, tap the (i) next to your network, then Configure DNS > Manual and add 8.8.8.8. On Windows, go to Settings > Network & internet, open your connection's properties, edit the DNS server assignment, and enter 8.8.8.8 as preferred and 8.8.4.4 as alternate. On a Mac, go to System Settings > Network, click Details on your WiFi connection, then DNS, and add 8.8.8.8 to the server list.

After changing it, turn WiFi off and on once so the device picks up the new setting.

When the Device Itself Is the Problem

A device can hold a bad DNS cache or a stale network profile even when everything else works. The number test plus a second working device confirms this case: your laptop fails, the phone loads fine, and the router has been restarted. Flush DNS as in step 6, then forget and rejoin the network. On Windows, also run netsh winsock reset in Command Prompt (as administrator) and reboot if flushing alone didn't help — it resets the network stack that DNS requests travel through.

One rarer cause: VPN or security apps that filter DNS. If the errors started right after installing one, disconnect the VPN and test again. If pages load, check the app's DNS settings or reinstall it.

Stopping DNS Errors From Coming Back

Set a reliable public DNS server in the router once, and brief provider outages stop affecting the whole house. A router on a plug-in timer that power-cycles it overnight once a week also clears slow caches before they cause trouble. If you travel with a laptop, expect DNS errors on hotel and café networks — those are usually the network's own servers, and switching your laptop to 8.8.8.8 for that visit fixes it without touching anything at home.

If DNS errors keep returning after all this, the pattern points to your internet provider's line or the router hardware failing. Note whether it happens at the same time each day, then report that pattern to the provider — a consistent timing detail makes the fault much easier for them to find.

Quick Checks Before You Dig Deeper

  • Router restarted and lights settled? (30 seconds unplugged, 2-3 minutes to boot)
  • Does 8.8.8.8 load in the browser while named sites don't?
  • Does a second device fail the same way?
  • Does the error name a DNS server or "cannot resolve" specifically?
  • Did a VPN or security app get installed recently?
  • Does it happen on one network only, or everywhere?

Yes to the first two with a second device failing means provider or router; yes with only your device failing means flush, forget and rejoin, then set DNS manually.

Official source: Google Android Help