Type "cmd" in the Start menu and select "Command Prompt."
In the opened window, type the following command and press Enter:
bash
ipconfig /flushdns
Using Graphic User Interface (GUI):
From the Start menu, go to "Settings" > "Network & Internet" > "Status."
Click on the "Network and Sharing Center" link.
On the left side, click "Change adapter settings."
Right-click on your active connection and select "Properties."
Select "Internet Protocol Version 4 (TCP/IPv4)" and click on "Properties."
In the "General" tab, check the "Use the following DNS server addresses" option. Then click "Apply" and "OK."
For MacOS:
Using Terminal:
Open the Terminal application. (Go to Spotlight, type "Terminal," and press Enter.)
In the opened window, type the following command and press Enter:
bash
sudo killall -HUP mDNSResponder
For Linux:
Using Terminal:
Open the Terminal.
In the opened window, type the following command and press Enter:
bash
sudo systemd-resolve --flush-caches
Please note that clearing the DNS cache does not clear other caches, such as browser cache or operating system cache. To clear browser cache, you may need to go to the browser settings.