When you open a website from your browser, you may get the following error.
When you get an above error, try the following solution:
Open command prompt or PowerShell and execute the following command to flush your DNS resolver cache.
After finding the IP address of the DNS server, try pinging it. Make sure you get a response from DNS server.
Try using Google's public DNS servers. Use the following IP addresses for preferred and alternate DNS servers.
Preferred DNS server: 184.108.40.206
Alternate DNS server: 220.127.116.11
The final workaround involves Ethernet cable/router and Wi-Fi device, unplug and plug them.