Skip to content

Clear the OS X dns cache

2007 May 8
by admin

Sometimes I need to to some DNS related work, and usually OS X pisses me off by seemingly keeping a cache of recently resolved names :) .

To clear this cache, simply execute this command in a terminal:

dscacheutil -flushcache

On older OSX versions, the correct command is:

lookupd -flushcache

No comments yet

Leave a Reply

Note: You can use basic XHTML in your comments. Your email address will never be published.

Subscribe to this comment feed via RSS