Clear the dns cache

On Ubuntu:

As posted on http://askubuntu.com/questions/414826/how-to-flush-dns-in-ubuntu-12-04 nscd will do the job:

sudo apt-get install nscd
#Flush DNS Cache in Ubuntu by restarting the nscd
sudo /etc/init.d/nscd restart

 

On Mac Sierra:

sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder;

Leave a Reply