If yes then follow the methods mentioned below to fix the problem.
The DNS server address is usually obtained automatically, but you can set it to something more reliable.
If it didn’t, then try out method 2 which is flushing DNS.
Usually windows installs extra connections even if you never use them.
Command prompt will appear, then type in ipconfig /flushdns and hit Enter.
This will remove all the DNS cache entry which just might resolve the problem.
Windows and other operating systems usually store the DNS data in the cache This cache also store data of the visited websites and clearing the cache may solve the problem.
To do that, click the Start button and type in cmd in the search box and press Enter from keyboard.
To do that Press the Windows Key from your keyword and type in in the search box just like we did in method 1.
Windows 10 users have a round search icon right next to the Windows icon in the taskbar.