1. Home
  2. Knowledge Base
  3. Website
  4. Website Tips
  5. How to clear local DNS cache (Mac OS)

How to clear local DNS cache (Mac OS)

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

Related Articles

Need Support?
Can't find the answer you're looking for?
Contact Support