Last Updated: February 25, 2016
·
1.067K
· not-only-code

Flush DNS cache in OSX

OS X Mountain Lion or Lion

Use the following Terminal command to reset the DNS cache:

sudo killall -HUP mDNSResponder

Mac OS X v10.6

Use the following Terminal command to reset the DNS cache:

sudo dscacheutil -flushcache

Source: http://support.apple.com/kb/HT5343