Showing posts with label Mac OSX. Show all posts
Showing posts with label Mac OSX. Show all posts

Saturday, September 17, 2011

How to clear the DNS cache for Windows, Mac and Linux

Command for clearing the DNS cache for Windows, Mac and Linux.

The commands need to be run at the command prompt with administrator privileges.

Windows

ipconfig /flushdns

Mac OSX 10.4 (Tiger)

lookupd -flushcache

Mac OSX 10.5/10.6 (Leopard/Snow Leopard)

dscacheutil -flushcache

Linux (Most Distributions)

sudo /etc/init.d/nscd restart
or
sudo /etc/init.d/networking restart