How to clear local DNS cache (Mac OS) Print

  • 0

Step 1. Open the Terminal.app, either by starting typing Terminal on the Spotlight or by going into Applications.
Step 2. Go to Utilities and click Terminal:
Step 3. Run one of the following commands depending on the version of OS X you're using and press Enter, then type your user password when prompted:

OS X El Capitan:

++
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder;echo flushed
++

OS X Yosemite:

++
sudo killall -HUP mDNSResponder
++

OS X Mavericks, Mountain Lion, and Lion:

++
sudo killall -HUP mDNSResponder
++


Mac OS X v10.6:

sudo dscacheutil -flushcache

Was this answer helpful?

« Back