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

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 comment

Subscribe to this blog now!

Top Clicks

  • None
February 2008
M T W T F S S
 123
45678910
11121314151617
18192021222324
2526272829