1. Home
  2. Website
  3. Website Tips
  4. 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

Was this article helpful?

Related Articles

Need Support?
Can’t find the answer you’re looking for? Don’t worry we’re here to help for 24X7!
Click here to talk us!

Leave a Comment