Home > Apple, Mac OSX > How to Flush DNS Cache in Mac OS X

How to Flush DNS Cache in Mac OS X

For OS X 10.3 and 10.4
lookupd -flushcache

For OS X 10.5 and 10.6
dscacheutil -flushcache

For OS X Lion (10.7) and OS X Mountain Lion (10.8)
sudo killall -HUP mDNSResponder
Note: dscacheutil still exists in 10.7 and 10.8, but the official method to clear out DNS caches is by killing mDNSResponder.

For OS X Mavericks (10.9)
dscacheutil -flushcache;sudo killall -HUP mDNSResponder

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: