
DNS request are usually cache, that’s good as it speeds up the lookups within the same host but sometimes we will want to clear the cache so it don’t hold the values that are no longer valid. To do that in Mac (OS Tiger and below) we used the following command:
lookupd -flushcache
However a Mac OSX 10.5 Leopard user will tell you this command did not work on their terminal. In Leopard a new command has been used to replace flushcache, so to clear DNS cache in Leopard, just type this in your Terminal and hit enter.
dscacheutil -flushcache
Don't miss any post. Subscribe to Hongkiat's RSS feed now.
Related Contents |
Sponsors |
|
Posted by hongkiat in Mac Tips , at 01.09.08
Tags: clear cache, dns, flush, mac osx leopard |
|


























Comments
Eris January 25th, 2008
Thanks, my college uses a capture page for logging into the wireless network and the first page opened redirects there so I was ending up with google.com cached as 1.1.1.1.
ReplyBrett February 14th, 2008
I don’t know why, but I end up having to google this page every week or so. Never had this issue with Tiger, but thanks to this page being #1 in Google it’s pretty easy to fix ;)
ReplyThx.
biscket July 17th, 2008
its very helpfull to me
Replybitcher August 13th, 2008
Useful especially if you use P2P clear the cache and watch your dl rate soar!!
thanks
ReplyTrackbacks