Reset DNS Cache On Mac

OS X stores a local cache of resolved DNS queries for a time defined by the DNS server, but there are times when it may be necessary to reset the cache immediately and re-query a DNS server. For example, you might do this after a change to an entry on the server or a new entry is added.

OS X Mountain Lion or Lion

Use the following command in the Terminal to reset the DNS cache:

sudo killall -HUP mDNSResponder

Mac OS X v10.6

Use the following command in the Terminal to reset the DNS cache:

sudo dscacheutil -flushcache
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 192 other followers

Categories
Archives
Colophon
wordpress com stats plugin
Follow

Get every new post delivered to your Inbox.

Join 192 other followers

%d bloggers like this: