How to Flush DNS cache (Windows/MAC/Linux)

DNS cache, although very useful in normal time, can become very annoying when all you want is to get rid of it to initiate a fresh query.

Here is how to clear the DNS cache on each of Microsoft Windows, Mac OS and Linux Operating Systems

Microsoft Windows (all versions)

  1. Open the command prompt: Start -> Run -> cmd
  2. Type ipconfig /flushdns

MAC OS X (Tiger and Earlier)

  1. Open the terminal window
  2. Type lookupd -flushcache

Mac OS X (Leopard)

  1. Open the terminal window
  2. Type dscacheutil -flushcache

Linux

  1. Open a terminal windows
  2. Type /etc/rc.d/init.d/nscd restart

I have been working in IT consultancy and solution integration since 1998 and I consider myself lucky to be, one in a few, making a living out of my passion. I am also member of the famous Experts Exchange (profile here) online community where I try my best to share what I have learned along the road.

Posted in Operating Systems Tagged with: , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

*