Mac OS X DNS Cache

December 19th, 2009

When you visit any website or host on your computer, the DNS reference/IP address gets cached for quite some time.  This can be a pain if you are migrating domains, or changing webhosts and need to test to see that your new changes are being propagated/used correctly.

In order to flush the DNS cache in Mac OS X, type the following command into a Terminal window:
dscacheutil -flushcache

This command works on Mac OS X 10.5 and above (including 10.6/Snow Leopard).

The command in Mac OS X 10.4 is:
lookupd -flushcache

Tags: , , , ,
Posted in Tech Stuff | Comments (0)

Leave a Reply

You must be logged in to post a comment.

Recent Posts