FixInternet and Wi-Fi
"DNS server isn't responding" and websites won't load
- Applies to
- Windows 11 and Windows 10
- Difficulty
- Moderate
- Time
- About 30 min
- Risk
- Changes settings
- Reviewed
Quick answer
Restart your router and PC first. If the message comes back, run ipconfig /flushdns and make sure your DNS setting is Automatic (DHCP). Trying a public DNS server is an optional test you can undo in a minute.
Fix 1Restart your router and your PC
DNS turns website names like microsoft.com into the number addresses computers use. Your PC normally asks your router, and the router asks your internet provider. If the router has stalled or the provider's DNS is down, every website fails even though you're connected. Restarting the router is the quickest test.
- Check whether a phone on the same Wi-Fi can load websites. If it can't either, the problem is the router or your provider, not your PC.
- Unplug the modem and router, wait about 30 seconds, plug them back in, and wait until the lights settle.
- Restart your PC: select Start > Power > Restart.
- If every device is still affected, check your provider's service status from your phone's mobile data.
Fixed? You can stop here. Still happening: go to Fix 2
Fix 2Disconnect any VPN and turn off proxy settings
A VPN usually sends DNS requests to its own servers. If the VPN has dropped or is misconfigured, those requests go nowhere. A leftover proxy setting can block traffic the same way.
- Disconnect or close any VPN app, then try a website.
- Open Settings then
Network & internet then . Under Manual proxy setup, make sure Use a proxy server is off. On Windows 11, select Edit or Set up next to it to see the switch.Proxy
Fixed? You can stop here. Still happening: go to Fix 3
Fix 3Clear the DNS cache and renew your connection
Windows keeps a cache of recent DNS answers to save time. A bad or outdated entry can stop sites loading. Clearing it, and asking the router for fresh settings, often fixes the message straight away.
Open Command Prompt as administrator: select Start, type cmd, right-click Command Prompt and select Run as administrator. Run these one at a time. Your connection drops briefly after the first.
ipconfig /release
How do I open Command Prompt as administrator?
Select Start and type cmd. Right-click Command Prompt, select Run as administrator, then select Yes.
ipconfig /renew
ipconfig /flushdns
The last one should say Successfully flushed the DNS Resolver Cache. To test whether DNS is answering now, run:
nslookup microsoft.com
A good result shows Non-authoritative answer followed by one or more addresses. If it says the request timed out, DNS still isn't answering. Carry on with the next fix.
Fixed? You can stop here. Still happening: go to Fix 4
Fix 4Make sure your DNS setting is automatic
Normally your PC gets its DNS server from the router automatically. If someone, or an app, set a DNS address by hand and that server stops working, you get this message on every network. Setting it back to automatic fixes that.
On Windows 11
- Open Settings then
Network & internet . Select Ethernet, or select Wi-Fi and then your network's properties. - Find DNS server assignment. If it says Manual, select Edit next to it.
- Choose Automatic (DHCP) and select Save.
On Windows 10
- Press Windows + R, type
ncpa.cpland press Enter to open Network Connections. - Right-click your Wi-Fi or Ethernet connection and select Properties.
- Select Internet Protocol Version 4 (TCP/IPv4), then Properties.
- Choose Obtain DNS server address automatically, then select OK and Close.
If the DNS addresses were changed and you didn't do it, run a Quick scan in Windows Security too. Unwanted software sometimes changes them. See Browser homepage or search engine changed by itself.
Fixed? You can stop here. Still happening: go to Fix 5
Fix 5Optional: try a public DNS server
If your provider's DNS servers are unreliable, a public DNS service can stand in for them. This is a test you can keep or undo. Skip it on work, school or filtered networks, where the local DNS is often needed for internal sites or parental controls.
On Windows 11
- Go back to DNS server assignment and select Edit.
- Choose Manual and turn on IPv4.
- In Preferred DNS and Alternate DNS, type a public service's two addresses, for example Cloudflare's 1.1.1.1 and 1.0.0.1, or Google Public DNS's 8.8.8.8 and 8.8.4.4. Leave the other options as they are.
- Select Save.
On Windows 10
- In the Internet Protocol Version 4 (TCP/IPv4) properties from the previous fix, choose Use the following DNS server addresses.
- In Preferred DNS server and Alternate DNS server, type a public service's two addresses, for example 1.1.1.1 and 1.0.0.1 (Cloudflare), or 8.8.8.8 and 8.8.4.4 (Google Public DNS).
- Select OK, then Close.
Then run ipconfig /flushdns again and try a website. To undo, set it back to automatic as in the previous fix.
Fixed? You can stop here. Still happening: go to Fix 6
Fix 6Reset Winsock and TCP/IP
Winsock and TCP/IP are the parts of Windows that every app uses to talk to the network. If their settings are damaged, for example by old VPN or security software, DNS requests can fail. These commands put them back to defaults without touching your files.
In Command Prompt as administrator, run these one at a time:
netsh winsock reset
netsh int ip reset
Each should report that it finished and ask you to restart. Restart your PC and try again. Any IP or DNS address you typed in by hand may need setting again afterwards.
Fixed? You can stop here. Still happening: go to Fix 7
Fix 7Reset your network settings
If DNS still fails on your PC but works on other devices, a full Network reset reinstalls your network adapters and puts all networking settings back to defaults. It's the last step because you'll need to rejoin Wi-Fi and may need to reinstall VPN software.
- On Windows 11, open Settings then
Network & internet then . On Windows 10, it's Settings thenAdvanced network settings then Network reset Network & Internet then .Status then Network reset - Select Reset now, then Yes. Your PC restarts.
Read Reset your network settings first for what to write down and what to set up again afterwards.
Fixed? You can stop here. Still happening: what to do next
If none of these worked
Stop here rather than trying riskier changes. These are the right places to go next:
- Microsoft SupportOfficial help for Windows, including the Get Help app built into Windows.
- Your PC maker's support siteFor hardware faults, drivers and warranty repairs. Find your model in Settings then
System then , then type the maker's web address yourself.About - A local repair shop you can visitFor hardware faults such as a failing drive, screen or battery.
Never call a phone number shown in a pop-up, or let someone you don't know connect to your PC. Microsoft doesn't put phone numbers in error messages. How to spot a tech-support scam
Sources and review
Checked against Microsoft's own documentation:
- Microsoft Support: Essential network settings and tasks in Windows
- Microsoft Support: Fix Wi-Fi connection issues in Windows
Last reviewed . Spotted a step that doesn't match your screen? Tell us and we'll check it.