Flush DNS Cache in OSX
I can never figure out why Apple has to be different, and especially why the change (break) stuff that already works fine. Today’s example: flushing the DNS cache.
From terminal, these are the commands to flush the cache on several (relatively) recent versions of OSX:
Leopard / Snow Leopard
Lion / Mountain Lion
sudo killall -HUP mDNSResponder