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).