Previously I have posted how to clear DNS cache in Windows, now I thought of writing the same but for Linux. So here’s how you can clear your DNS Cache in Linux. This is specific for Redhat Linux. I don’t know if it will work on other Linux or not. Please tell your experiences. Issue the following command:

/etc/rc.d/init.d/nscd restart

Restarting nscd will flush your Linux DNS cache.