DNS: flush client cache

Published by

Posted on March 01, 0218

Linux (Terminal )

/etc/init.d/nscd restart
or
service nscd restart

if the nscd restart does not clear up the cache. try clearingĀ /var/db/nscd/hosts by
runningĀ  nscd --invalidate=hosts

if you do not have the nscd package . it will need to be installed using the source, rpm, yum or apt. This depends on your linux distro.

 

Windows ( CMD)

ipconfig /flushdns

Mac systems
# dscacheutil -flushcache

or
lookupd -flushcache