OS X Flush DNS Cache

Mac OS X, now just OS X, seems to change the way the DNS cache is flushed every couple of releases.

Below are the various commands to flush the DNS cache from Mac OS X 10.4 Tiger to OS X 10.9 Mavericks.

OS X 10.9 Mavericks

Apparently in Mavericks this is a two step process.

Flush the DNS cache:

dscacheutil -flushcache

Then reload DNS:

sudo killall -HUP mDNSResponder

Mac OS X 10.7 Lion and OS X 10.8 Mountain Lion

sudo killall -HUP mDNSResponder

Mac OS X 10.5 Leopard and 10.6 Snow Leopard

sudo dscacheutil -flushcache

Mac OS X 10.4 Tiger

sudo lookupd -flushcache


If you found this post useful and would like to help support this site - and get something for yourself - sign up for any of the services listed below through the provided links.

The following links are part of affiliate programs, and I will receive a referral payment from any of the services you sign-up for.

  • Get Faster Shipping: About to order some stuff on Amazon but want to get more value out of the money you would normally pay for shipping? Sign-up for a free, 30-day trial of Amazon Prime to get free two-day shipping, access to thousands of movies and TV shows, and more.
  • Start Investing Now: Looking to start investing some of your saved income? Get started by opening an account with Webull, where upon sign-up and opening a brokerage account with an initial deposit of $100 or more you will receive free stock(s). The promotions are always changing, so be sure to click the link to see the latest.

Thanks for reading and take care.