User Agents

Web browsers and everyday web tech, explained

Your DNS Server Might Be Unavailable: Fixes That Work

· 5 min read · How the Web Works

In this article
  1. Fixing the "Your DNS Server Might Be Unavailable" Error, Step by Step
  2. What the DNS Error Symptom Tells You About the Cause
  3. Quick Checks Before You Change Any DNS Settings
  4. Keeping DNS Working After the Fix

This error means Windows (or your browser) could not reach the server that turns website names into addresses. It is almost always a router hiccup, a stuck network setting, or your internet provider's DNS being down, and you can usually fix it in under 15 minutes.

Time 15 min · Steps 7 · Level Easy

Fixing the "Your DNS Server Might Be Unavailable" Error, Step by Step

  1. Restart your router and modem. Unplug both from power, wait 30 seconds, plug the modem back in first, wait about 2 minutes for its lights to settle, then power the router back on. This clears the fault more often than anything else.
  2. Restart the computer or phone. A reboot resets the network stack, which clears errors that survive a router restart.
  3. Flush the DNS cache. On Windows, open Command Prompt as administrator and run ipconfig /flushdns, then ipconfig /release and ipconfig /renew. On a Mac, open Terminal and run sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder.
  4. Switch to a public DNS server. In your device's network settings, change the DNS from automatic to manual and enter 8.8.8.8 and 8.8.4.4 (Google) or 1.1.1.1 and 1.0.0.1 (Cloudflare). This bypasses a provider DNS outage entirely.
  5. Try another device on the same network. If a second device loads pages fine, the problem is the first device's settings, not your connection.
  6. Test the router's DNS directly. Log in to your router's admin page (the address is on a sticker on the router, often 192.168.0.1 or 192.168.1.1) and set its DNS to the same public numbers, so every device in the house is covered.
  7. Check for a wider outage. If nothing on any device works, check your provider's service status page from a mobile data connection, or call them; the fault may be on their lines.

What the DNS Error Symptom Tells You About the Cause

The exact way the failure shows up narrows down the cause quickly. Use this table before changing anything, so you fix the right thing the first time.

SymptomLikely causeHow to confirmFix
Every site fails on every deviceRouter or provider DNS outageRouter restart does not help; provider status page shows a faultSet public DNS in the router, or wait for the provider
Every site fails on one device onlyStuck DNS cache or wrong network settingsAnother device on the same Wi-Fi loads pagesFlush DNS, then set DNS manually on that device
Some sites load, others do notOne DNS entry cached badly, or a site's own DNS problemThe site fails on mobile data tooFlush DNS; if it still fails off-network, the site is down, not you
Error appears after a router or settings changeNew settings broke DNSUndo the change and testRevert the change, or set DNS to automatic again
Error only in one browserBrowser DNS or proxy settingAnother browser on the same device worksClear the browser's cache, check its proxy and secure-DNS settings

Quick Checks Before You Change Any DNS Settings

Two minutes of checking saves you from fixing the wrong thing. Run through this list in order, because each item rules out a whole group of causes.

  • Can you load a page by typing its number address, such as 8.8.8.8's own info page? If numbers work but names do not, DNS is confirmed as the fault, not your connection.
  • Is the Wi-Fi or ethernet icon showing a connection at all? A disconnected device shows a different error and needs a different fix.
  • Does the error clear in a private or incognito window? If so, a browser extension or cached page is the culprit.
  • Did anything change in the last hour — a router moved, a VPN switched on, a Windows update installed? Undo that first.
  • Is the date and time on the device correct? A badly wrong clock breaks secure connections and can masquerade as a DNS fault.

Where the DNS Setting Lives on Each Device

Menu names differ slightly by version, but the paths are stable. On Windows: Settings > Network & internet > your connection > DNS server assignment > Edit. On a Mac: System Settings > Network > your connection > Details > DNS. On Android: Settings > Network > Private DNS, or long-press your Wi-Fi network and look for advanced options. On iPhone: Settings > Wi-Fi > tap the (i) next to your network > Configure DNS. On a browser, Chrome and Firefox both have a secure DNS setting under their privacy or connection options that can override the system — turn it off if results are confusing.

Keeping DNS Working After the Fix

Once the error is gone, a few habits keep it away. Set your router's DNS to a public service permanently, so a provider outage never takes the whole house offline again. If you use a VPN, expect this error to appear when the VPN drops mid-session; reconnecting or closing the VPN app usually clears it. After any router firmware or big system update, re-check the DNS setting, because updates sometimes reset it to automatic. Note your router's admin password somewhere safe, because you will need it for these settings and factory-resetting the router to guess your way in wipes the Wi-Fi name and password too.

Questions That Come Up With DNS Unavailable Errors

Is it safe to use a public DNS like 8.8.8.8? Yes. Public resolvers from Google and Cloudflare are standard consumer services; changing DNS affects only how names are looked up, not your speed tier or billing.

Why does the error come and go? Intermittent faults usually mean a flaky Wi-Fi link or a router that drops DNS forwarding when it overheats or runs long. Restarting helps briefly; if it recurs weekly, the router itself is likely failing.

Does flushing DNS delete anything important? No. The cache is rebuilt automatically as you browse; flushing it just forces fresh lookups, which fixes pages that point to old addresses.

What if the error appears only on one website? That site's own DNS records may be broken or propagating after a change. Test it from mobile data; if it fails there too, wait — there is nothing to fix on your end.

Official source: Microsoft Support