Mac OS X - Clearing or flushing the DNS Cache is regular occurrence for a network engineer.
Once you go to a Web site, or do any DNS lookup, the IP gets cached for quite a while. This becomes a royal pain if youíre a systems administrator who is in the middle of migrating domains from one server to another. Executing the following clears the cache, restarts the caching daemon, and fetches fresh DNS records.
For Mountain Lion / Lion
sudo killall -HUP mDNSResponder
For Leopard
sudo dscacheutil -flushcache
For Tiger
lookupd -flushcache
If you are an unreformed Windows user, these commands are equivalent to
ipconfig /flushdns
Reference: Apple Support Site here