Learn to clear the local DNS cache in Linux

Now you’ll simply utilize a local DNS resolver cache like Windows and Mac OS X.

Perform the steps as follow to clear the DNS cache in Linux :

(i) Open the terminal.

(ii) Restart the name service cache daemon by typing following command :

sudo/etc/init.d/nscd restart

(iii) In some cases, the nscd daemon might not be installed.

Thus using the following command you can install it in Ubuntu or in other Debian-based distros :

sudo apt-get install nscd

(iv) For the RedHat-based distributions (like Fedora, CentOS), you can install nscd daemon using yum package manager as :

yum install nscd