Your DNS Server Might Be Unavailable: Fixes That Work
In this article
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
- 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.
- Restart the computer or phone. A reboot resets the network stack, which clears errors that survive a router restart.
- Flush the DNS cache. On Windows, open Command Prompt as administrator and run
ipconfig /flushdns, thenipconfig /releaseandipconfig /renew. On a Mac, open Terminal and runsudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder. - 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.
- 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.
- 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.
- 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.
| Symptom | Likely cause | How to confirm | Fix |
|---|---|---|---|
| Every site fails on every device | Router or provider DNS outage | Router restart does not help; provider status page shows a fault | Set public DNS in the router, or wait for the provider |
| Every site fails on one device only | Stuck DNS cache or wrong network settings | Another device on the same Wi-Fi loads pages | Flush DNS, then set DNS manually on that device |
| Some sites load, others do not | One DNS entry cached badly, or a site's own DNS problem | The site fails on mobile data too | Flush DNS; if it still fails off-network, the site is down, not you |
| Error appears after a router or settings change | New settings broke DNS | Undo the change and test | Revert the change, or set DNS to automatic again |
| Error only in one browser | Browser DNS or proxy setting | Another browser on the same device works | Clear 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