Archive for the ‘OS X’ Category

Flush DNS resolver cache on OS X, Linux, Solaris and Windows

Wednesday, October 21st, 2009

OS X: dscacheutil -flushcache

Linux (CentOS, RHEL): /sbin/service nscd restart

Solaris: ps -eaf|grep nscd

kill -9 PID   ### PID is process ID from the previous step

/usr/sbin/nscd

Windows (from command line of course): ipconfig /flushdns (run ipconfig /displaydns to view the DNS resolver cache)