Shane Duffy

OS X flush DNS cache

Posted on: February 16, 2008

So this morning I was doing some work with one of my webservers and adding new sub hosts to some of the domains and to see the changes on my MacBook pro laptop I knew I would need to flush the DNS cache so I wouldnt have to wait for the cache to expire.

So for anyone else who needs to know the commands here they are:

OS X <= 10.5.1

lookupd -flushcache

OS X >= 10.5.2

dscacheutil -flushcache

Hope that will help anyone out there who needs to flush their dns cache and has just upgraded to 10.5.2

Advertisements

2 Responses to "OS X flush DNS cache"

“Hope that will help anyone out there who needs to flush their dns cache and has just upgraded to 10.5.2”

Yes it did, thank you.

I just want to write dns flush for mountain lion:
sudo killall -HUP mDNSResponder
Source:
http://appletoolbox.com/2012/08/how-to-flush-the-dns-cache-on-a-mac-osx/

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

Subscribe to this blog now!

Top Clicks

  • None
February 2008
M T W T F S S
« Oct   Apr »
 123
45678910
11121314151617
18192021222324
2526272829  
%d bloggers like this: