Knowledge Base Article

How to clear the local DNS cache in Linux?

You can flush your local DNS cache in Linux by following these easy steps:

1. Open your terminal to use the command line.

2. Log in as root using the su command:

user@host:~$ su
Password: <type your root password>
root@host:


3. Restart the name service cache daemon:

root@host: /etc/init.d/nscd restart

 

Please note that the name service cache deamon (nscd) may not be installed by default on your Linux distribution. You should be able to install it through the package manager of your distribution - yum for RedHad-based distros (Fedora, CentOS) and apt-get for Debian-based distros (Ubuntu, Kubuntu).



Rating

Please indicate if this article was helpful for you.

rating :  4.2 from 5
views :  6151
votes :  22

Haven't found what you are looking for? Suggest an article HERE.

powered by

Valid XHTML 1.0 Strict Valid CSS!