I ALWAYS forget how to reset DNS cache. This is especially useful when moving sites to a new server.

Mountain Lion or Lion

Use the following Terminal command to reset the DNS cache:

sudo killall -HUP mDNSResponder

Mac OS X v10.6Use the following Terminal command to reset the DNS cache:

sudo dscacheutil -flushcache

via OS X: How to reset the DNS cache.