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.
It is equally easy in Mac OS X as well. Fire up Terminal.app and type
dscacheutil -flushcache
That’s it!