My PC suddenly can't connect to the internet even though all my other devices work just fine. In the Wi-Fi settings, it says I'm connected and secured, but when I try to open a browser, I get an error message saying that Google's server IP address couldn't be found (ERR_NAME_NOT_RESOLVED). I've already tried a bunch of troubleshooting steps including disabling IPv6, setting DNS to 8.8.8.8 and 8.8.4.4, disabling firewalls, flushing DNS, resetting the network stack, and reinstalling the Wi-Fi drivers. I can ping 8.8.8.8, but pinging google.com fails with "ping request could not find host google.com." Any ideas on what I can do next?
3 Answers
Sometimes just restarting your network adapter can make a big difference. Go to Device Manager, find your network adapter, and disable and then enable the driver. It’s worth a shot!
Do you have an Ethernet cable? Connecting your PC directly to the router with an Ethernet cable can help you figure out if the issue is with your wireless connection. If that works, then the problem might be with the Wi-Fi itself. As a test, you could also boot from a USB Linux drive to see if it connects to the internet that way. Just a thought!
You might want to try running some commands in Command Prompt as an admin. Use these commands: `ipconfig /flushdns`, `ipconfig /registerdns`, `netsh winsock reset`, `netsh int ip reset`, `netsh int ipv4 reset`, and `netsh int ipv6 reset`. These can help reset your network settings. Let me know if that helps!
I tried `ipconfig /registerdns`, but it said the registration of the DNS records failed. The parameter is incorrect.

I don’t have an Ethernet cable right now, unfortunately. My old one broke, but I guess I should get a new one.