OS X: How to reset the DNS cache
Summary
Learn how to reset (flush) the DNS cache.
OS X Mountain Lion or Lion
Use the following Terminal command to reset the DNS cache:
sudo killall -HUP mDNSResponder