Flush the DNS cache

The command to Flush the DNS cache can vary widely depending on your specific distribution and version.

Ubuntu and Debian-derived distributions use:
sudo service dns-clean restart.

Other Linux distributions using NSCD (Name Service Caching Daemon) may need to use one of the following commands.
sudo service nscd restart 
sudo systemctl restart nscd.service
nscd -I hosts

Comments