The article explains how to clear the local DNS cache. It might be useful if you have made some changes to your online project, but you can’t see it on your home computer.
Windows OS
Press Windows key + X;
Choose “Run“, on the new display enter “cmd” and press Enter;
On your Command line(CMD) enter the following command:
ipconfig /flushdns
Done
Mac OS
Choose Applications, then Utilities, and find Terminal;
Enter the following command based on your Mac OS version: From El Capitan to Mojave versions:
sudo killall -HUP mDNSResponder
Big Sur:sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
After these commands you might be asked for Mac Password, enter it;
Done.
Linux
In the terminal, enter the command:
sudo systemd-resolve --flush-caches
After that, you can check your cache statistics using this command:
sudo systemd-resolve --statistics
The last command will show the statistics of your cache in a table, at the Current Cache Size you should see 0.