Drink Beer and Geek Out

How to Clear the DNS Cache on a Mac

By default, Mac OS X will cache DNS requests.  Caching means that the OS remembers the IP addresses of sites you’ve visited.   This is done to speed up browsing of the web by not asking for information again that we already know.  Sometimes however, things change, and we need to delete that cache before it expires naturally.

For OS X Tiger use the following command to clear the DNS cache:

lookupd -flushcache

For OS X Leopard or above use this command:

dscacheutil -flushcache

Note:  For those a little less inexperienced, you’ll need to open a terminal window from the Utilities folder in order to enter this command.

Leave a Reply