User Agents

Web browsers and everyday web tech, explained

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

· 5 min read · How the Web Works

In this article
  1. How to Tell Which DNS Problem You Have
  2. Your Device's DNS Settings Are Wrong or Stale
  3. The Router Is Passing Out a Bad DNS Address
  4. Your Internet Provider's DNS Servers Are Down
  5. The Browser Itself Is Blocking Lookups
  6. The Website's Own DNS Records Are Broken
  7. What to Do If the Error Keeps Coming Back

A DNS connection error means your device cannot translate a website name into the number it needs to reach it. Restarting your router and switching to a public DNS server such as Google DNS (8.8.8.8) fixes the majority of cases.

Time 20 min · Steps 8 · Level Easy

Quick fix first: restart your router and your device, then try a different DNS server. Most DNS errors clear with a power cycle; if they do not, the problem is usually your DNS settings, your router, your network's DNS service, or a browser-specific fault. DNS is the internet's address book: when you type a site name, DNS looks up the matching IP address. If that lookup fails, pages refuse to load even though your Wi-Fi shows as connected.

How to Tell Which DNS Problem You Have

Work through a simple order of tests before changing anything, because each result points to a different fix. The tests take a few minutes and rule problems out one by one.

  1. Restart router and device. Unplug the router for 30 seconds, plug it back in, wait about 2 minutes for it to fully reconnect, then restart your computer or phone and reload the page.
  2. Try another website. If some sites load and others do not, the fault may be with that site's DNS records, not your setup.
  3. Try another device on the same network. If only one device fails, fix that device's DNS settings. If all devices fail, the problem is the router or your internet provider.
  4. Try mobile data. Switch your phone off Wi-Fi and onto mobile data. If pages load, your home network or provider is the cause.
  5. Try a different browser. If only one browser shows the error, clear its cache and cookies or reset it.
  6. Ping an IP address. Open a command prompt or terminal and ping a known numeric address. If numbers respond but names do not, DNS is confirmed as the fault.
  7. Flush the DNS cache. On Windows run the command ipconfig /flushdns; on Mac run sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder. This clears stale or poisoned lookups stored on your device.
  8. Change your DNS server. Set your device or router to a public DNS such as Google DNS (8.8.8.8 and 8.8.4.4) or Cloudflare (1.1.1.1 and 1.0.0.1).

Your Device's DNS Settings Are Wrong or Stale

This is the most common single cause, and it is confirmed when only one device on the network fails. A device may hold a bad DNS address from an old network, or its cached lookups may be outdated.

How to confirm: run the flush command from the list above, then reload the page. If the error persists, check the device's DNS settings.

How to fix on Windows: open Settings > Network & internet, choose your connection, then find the DNS server assignment and set it to manual with 8.8.8.8 as the preferred server. Menu labels can differ slightly by version. On a Mac: System Settings > Network, select your connection, click Details, then DNS, and add 8.8.8.8. On Android: Settings > Network & internet > Private DNS, and enter a provider hostname such as dns.google. On iPhone: Settings > Wi-Fi, tap the information icon next to your network, then Configure DNS and add a server manually.

The Router Is Passing Out a Bad DNS Address

When every device in the house fails at the same time, the router or the line behind it is the usual suspect. Confirm it by testing mobile data on your phone: if pages load on data but not Wi-Fi, the fault is inside your home network.

Fix it in two stages. First, power-cycle the router as in step 1, since routers also cache DNS lookups and a restart clears them. If the error returns, log in to the router's admin page (usually reached through a browser address such as 192.168.1.1 or 192.168.0.1, with the password printed on the router label), find the DNS settings, and enter 8.8.8.8 and 8.8.4.4 there. This fixes every device at once, which is why it beats setting DNS on each device separately.

Your Internet Provider's DNS Servers Are Down

Providers run their own DNS servers, and when those fail, whole neighbourhoods of customers see DNS errors while the connection itself is fine. Confirm it by switching one device to Google DNS or Cloudflare as in step 8: if the error disappears the moment you change servers, the provider's DNS was the fault. You can also check the provider's service status page from a phone on mobile data. Switching your router to a public DNS server permanently sidesteps this problem, and it is a safe, reversible change.

The Browser Itself Is Blocking Lookups

A DNS error that appears in one browser but not others points to the browser, not the network. Confirm by opening the same address in a second browser or in a private window.

Fix it in order: clear the browser's cache and cookies in its settings menu; disable any VPN or proxy extension, since these intercept DNS lookups and fail quietly; then check the browser's own DNS setting, which some browsers have under their privacy or security options, and set it to a secure DNS provider or turn the feature off to use the system's DNS. If a VPN app runs at system level, disconnect it there too, because a VPN with dead DNS servers produces exactly this error.

The Website's Own DNS Records Are Broken

Sometimes nothing on your side is wrong. A site that has moved servers or misconfigured its records will fail DNS lookups for everyone. Confirm it by trying several other sites, and by asking someone on a different network, or checking on mobile data, whether the same site loads for them. If the site fails everywhere, wait and retry later; the site's owner has to fix their records, and nothing you change on your device will help.

What to Do If the Error Keeps Coming Back

A one-off DNS error is normal; a repeating one needs a decision. If changing to public DNS on the router stopped it, leave that setting in place. If the error returns even with public DNS, reset the router to factory settings using its reset button (usually a small recessed button held for about 10 seconds), then set it up again with the new DNS servers. If errors persist after that, contact your internet provider and report that DNS lookups are failing across devices, since a line or account-level fault is then the likely cause. For a device that fails only on one specific Wi-Fi network, forget that network in the device's Wi-Fi settings and rejoin it, which forces it to request fresh DNS details.

Official source: Google Android Help