Knowledge Base
MilesWeb / Web Hosting FAQ

Learn to clear the local DNS cache in Linux

Approx. read time : 2 min

Now you can easily utilize a local DNS resolver cache like Windows and Mac OS X.

Perform following steps to clear the DNS cache in Linux :

(i) Open the terminal.

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

(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 :

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

Also Read :

1) Learn to import .sql file into a Postgre database

Sonam Wagh
With an interest in doing something creative daily, Sonam works as a Digital Marketing Executive. She likes to write technical blogs related to web hosting, digital marketing, and other IT topics. She also likes to spend her leisure time on social media to find different strategies for client engagement.