ubuntu 14.04下hosts 失效-清理dns快取
In ubuntu if you want to flush DNS cache you need to restart nscd daemon
Install nscd using the following command
sudo
apt-get install nscd
Flush DNS Cache in Ubuntu Using the following command
sudo
/etc/init.d/nscd restart
OR
sudo
/etc/init.d/dns-clean start