How to Flush DNS Cache Mac OSX Mavericks 10.9 – Empty, Reset, Clear DNS Cache

DNS cache keeps an IP address stored in your computer. If you’re doing web development and you’ve moved your content to a new server sometimes you can’t reach it. The DNS entry needs to be changed.

For Mac OS X 10.10 Yosemite Use This Tutorial

In Mac OS X 10.9 Mavericks

Open up your terminal Application located in Applications/Utilities/Terminal

Mac OSX Terminal

Enter this command:

dscacheutil -flushcache

Then, to reload DNS type this command:

sudo killall -HUP mDNSResponder

Now, ping the domain that was cached and the new IP should show up for you.

One thought on “How to Flush DNS Cache Mac OSX Mavericks 10.9 – Empty, Reset, Clear DNS Cache”

  1. Hi this doesnt work for me, when i enter it in the terminal.

    I redirected a domain today but on my computer it still directs me to the old one while everyone else can see the right one. I have had no luck sorting this out. Can you help? Thanks

Leave a Reply

Your email address will not be published. Required fields are marked *