How to clear the DNS cache on OSX 10.8 Mountain Lion.
In a terminal window type the following:
sudo killall -HUP mDNSResponder
Per Apple,
OS X keeps a local cache of resolved DNS queries for a time defined by the DNS server, but sometimes it may be necessary to reset the cache immediately and re-query a DNS server.