How to Clear DNS Cache in Mac OS X Snow Leopard?

I was working on moving a few of our WordPress sites from Apache to Niginx. One of the changes was the new server ip address. But, I kept hitting the old ip address when i tried to ping from my iMac. 

Doh! I haven’t cleared the DNS cache in my Mac OS X Snow Leopard. I knew how to do this in windows. It is as simple as typing  flushdns in command prompt. 

Flush Mac DNS Cache

It is equally easy in Mac OS X as well. Fire up and type

dscacheutil -flushcache

That’s it!

Explore Tags: , ,

Comments are closed.