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: 220.127.116.11
Alternate DNS server: 18.104.22.168
The final workaround involves Ethernet cable/router and Wi-Fi device, unplug and plug them.