Fix DNS Errors on Windows 11: Quick Steps That Work
In this article
Most DNS errors on Windows 11 are fixed by flushing the DNS cache and switching to a different DNS server, and you can do both in about 10 minutes. The error usually means your PC cannot translate website names into addresses, not that the site itself is down.
Time 10 min · Steps 7 · Level Easy
What a DNS Error Means
DNS is the system that turns a name like a website address into the number a computer actually connects to. When Windows 11 shows a DNS error, the browser is usually telling you one of three things: your DNS cache is stale, the DNS server your network handed you is unreachable, or the network adapter settings are misconfigured. The site itself is often fine, which you can confirm by loading it on your phone over mobile data.
The common misconception is that a DNS error means your Wi-Fi or internet connection is broken. In fact, the connection can be perfectly up, and other apps like email or messaging may still work, because only the name-lookup step is failing.
Signs It Is DNS and Not Something Else
- The browser says "DNS server not responding", "DNS_PROBE_FINISHED_NO_INTERNET" or a similar DNS-named message.
- Some sites load and others do not, or a site fails in one browser but loads on another device.
- Everything works on your phone when you turn Wi-Fi off and use mobile data.
- Windows shows the network as connected, with no yellow warning icon on the Wi-Fi symbol.
- The problem started after a router restart, a VPN install or a Windows update.
Fixes in Order of Effort
Work through these from top to bottom, since the first two solve the majority of cases. Menu labels can differ slightly between Windows versions.
- Restart the router. Unplug it, wait 30 seconds, plug it back in and wait about 2 minutes for the lights to settle. This clears the router's own DNS cache and renews its connection to your internet provider's DNS servers.
- Flush the DNS cache. Right-click Start, choose Terminal (Admin) or Command Prompt (Admin), then run
ipconfig /flushdns. Follow it withipconfig /releaseandipconfig /renewto get a fresh address from the router. - Change your DNS server. Open Settings > Network & internet > your connection (Wi-Fi or Ethernet) > DNS server assignment > Edit, and set it to Manual. Enter a public DNS pair such as 8.8.8.8 and 8.8.4.4, or 1.1.1.1 and 1.0.0.1, then save and reconnect.
- Check the network troubleshooter. Go to Settings > System > Troubleshoot > Other troubleshooters and run the one for Internet Connections or Network Adapter. It resets adapter settings that a VPN or update may have changed.
- Reset the network stack. Back in the admin terminal, run
netsh winsock resetandnetsh int ip reset, then restart the PC. This returns the networking components to their defaults, so you will need to re-enter Wi-Fi passwords. - Disable the VPN or proxy. A VPN that failed silently is a frequent cause. Disconnect it in its app, and check Settings > Network & internet > Proxy to make sure nothing is enabled there without your knowledge.
- Update or reinstall the adapter driver. In Device Manager, expand Network adapters, right-click yours and choose Update driver, or Uninstall device and restart so Windows reinstalls it. Only do this if the earlier steps failed, since a restart without Wi-Fi access can be awkward.
Rules of Thumb
If flushing the cache fixes it but the error returns within days, the culprit is usually the router or the internet provider's DNS server, so switching to a public DNS in step 3 is the lasting fix. If the error appears only on one specific site, the problem is on that site's side and there is nothing to fix locally. If no DNS change helps and nothing loads at all, the fault is more likely the connection itself than DNS, and the call belongs to your internet provider.
After any change, test with two or three different sites rather than the one that failed, and give the browser a few seconds to reconnect. A page that loads on the second refresh confirms the fix took.
When DNS Errors Keep Coming Back
Recurring DNS errors usually point to one of three things. A router that needs replacing will drop its DNS forwarding every few days until a restart brings it back. Malware that edits DNS settings is rarer but real, and Windows Security's full scan will flag it. A third-party security suite or "internet optimizer" tool can also rewrite DNS settings on its own schedule, so check its settings or remove it if the numbers in your adapter keep changing away from what you set.
One more check worth knowing: if you set manual DNS servers and later switch networks, such as moving from home Wi-Fi to a mobile hotspot, Windows keeps the manual settings for that adapter. Reset DNS server assignment back to Automatic when the manual pair stops working on a new network.
Official source: Microsoft Support