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:
Password: <type your root password>
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).
You find this article useful? Click here to learn more about SiteGround web hosting experts and what else we can do for you!