Clearing the DNS Cache in OSX

How do you clear the DNS Cache in OSX Mavericks?

A friend of mine was having some issues clearing the DNS Cache on his OSX 10.9 Mavericks machine - the well known way of doing it in terminal:

sudo dscacheutil -flushcache doesn’t work though in Mavericks....and it doesn’t tell you either:


I could feel his pain...Anyway, the method of clearing the DNS Cache changed with 10.7 OSX Lion. To do it with Lion, Mountain Lion or Mavericks you need to use the following command:

sudo killall -HUP mDNSResponder

Cunning hey? Also, if you do the right thing and have your normal day to day account
without Administrative rights, you may be interested in this article:

Running Terminal as a Different User

If you’re particularly lazy...
there’s an app for this.

EDIT: Apple Support document:
OS X: How to reset the DNS cache

blog comments powered by Disqus