The blog

Clear or Flush DNS Cache on Mac OS X Leopard

Sometimes it’s necessary to clear DNS cache on your local machine. If lookups are sluggish, it’s most likely your ISP, but it’s worth trying to clear cache on the local machine.

To clear cache on Mac OS X, open a terminal window and type the following command:

dscacheutil -flushcache

Then click enter. You won’t get any output from running dscacheutil but the cache has been cleared.

Try some more lookups, but you may need to restart the machine or logout/login to have the cache flushed.

2 Responses to “Clear or Flush DNS Cache on Mac OS X Leopard”


  1. Willem
    2009.02.13

    Hey!

    dscacheutil -flushcache

    … works for OS X 10.5.* (Leopard), but if you’re using an older OS X 10.4.* (Tiger)-based Mac, you should use:

    lookupd -flushcache

    … as detailed here:

    http://www.geekology.co.za/blog/2009/02/mac-os-x-quick-tip-clearing-the-dns-cache-in-104-tiger-and-105-leopard/


  2. Steve
    2009.02.13

    Thanks for clarifying that, Willem!

Leave a Reply