Flush DNS Cache in Lion and Mountain Lion Changed

To flush the DNS cache in Mac OS X 10.5 and 10.6, run this command in Terminal:

sudo dscacheutil -flushcache

This as been changed in 10.7 and 10.8, as per an article from Apple, to clear it out, run this command:

sudo killall -HUP mDNSResponder

Apple also says:

“You might want to do this, as OS X keeps a local cache of resolved DNS queries for a time defined by the DNS server, but sometimes it may be necessary to reset the cache immediately and re-query a DNS server. For example, you might do this after an entry on the server is changed or a new entry is added.”

Tagged with: , , , , , , , ,
Posted in Macintosh

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

Enter your email address to follow this site and receive notifications of new posts by email.

Join 196 other followers

Categories
Flickr Photos
Archives
Colophon
wordpress com stats plugin
%d bloggers like this: