When Windows says the DNS server isn't responding, your PC is usually connected to the router but can't turn website names into the addresses it needs to reach them. Pages won't load, games can't find their servers, yet the Wi-Fi or Ethernet icon may still look connected. The fix is normally on your PC, your router or the DNS server you're set to use, and you can work through them in order. The commands and settings come from Microsoft's documentation, credited at the end, and the order of the steps is our advice.
Step 1: Rule out the router and your internet connection
Restart your router and modem first, and wait for them to come fully back up. Then check whether another device on the same network can get online. Microsoft's advice is that if another laptop or phone can connect to the same network, "the source of the problem is likely due to your device". If nothing in the house can get online, the problem is the router or your broadband, and your provider is the next call.
Step 2: Check you have a valid IP address and a DNS server
Open Command Prompt as administrator (search for it, then select Run as administrator) and run:
ipconfig /all
Microsoft describes /all as showing "the full TCP/IP configuration for all adapters". Find your active Wi-Fi or Ethernet adapter. Microsoft says to make sure your IP address isn't in the 169.254.x.x range. An address like that means your PC didn't get a proper address from the router, which points to a router or connection problem rather than DNS.
Next, check that a DNS server is listed. Microsoft's Wi-Fi troubleshooting page suggests running:
ipconfig /all | findstr /c:"DNS Servers"
Note the address, then type ping followed by that address. If you have a valid IP address but can't ping your DNS server, Microsoft says you can change your DNS server to a different address and try again.
Step 3: Flush the DNS cache and reset the network stack
A bad cached entry or a damaged network configuration can stop name lookups working. Microsoft lists these commands to run in Command Prompt as administrator, in this order:
netsh winsock reset
netsh int ip reset
ipconfig /release
ipconfig /renew
ipconfig /flushdns
Microsoft's ipconfig reference explains that /flushdns "Flushes and resets the contents of the DNS client resolver cache". If Windows asks you to restart after the netsh commands, do so before testing again. For more on clearing the cache, see our guide to flushing the DNS cache in Windows 11.
Step 4: Test whether the DNS server is answering
nslookup lets you ask a DNS server directly. Type nslookup followed by a website name, for example nslookup forgepc.co.uk. If it reports that the request timed out, the DNS server you're using isn't answering. Microsoft's nslookup reference also lets you name a specific server after the website, so you can compare your router's DNS with another one and see whether only one of them is failing.
Step 5: Switch to a different DNS server
If your current DNS server is the problem, point Windows at a different one. Many routers hand out the provider's own DNS servers, and switching to a well-known public DNS service often gets things working again. Our guide to changing DNS in Windows 11 covers the settings step by step. Microsoft also tells you to check Settings > Network & Internet > Proxy and turn off any manual proxy settings you didn't set up yourself.
Step 6: Reinstall the network adapter driver
If none of that works, Microsoft's next step is to uninstall the network adapter driver and restart, because Windows will automatically install the latest driver again. Microsoft suggests this especially if your connection stopped working after a recent update. Open Device Manager, expand Network adapters, right-click your adapter, select Uninstall device, then restart. It's worth downloading the latest driver from your motherboard or network card maker first, in case Windows can't find one.
Security software and VPN apps can also intercept DNS. If the problem started after you installed one, temporarily disable or uninstall it to test.
If the connection keeps dropping rather than failing to look up names, see our guides to Wi-Fi disconnecting, Ethernet not working and high ping and packet loss.