espresso machines at 1st-line.com

Tips for purging DNS cache for Mac users

Offer your ideas on how to improve the site or report site problems.

Link to "Tips for purging DNS cache for Mac users"by zix on Tue Jan 13, 2009 6:16 pm

For what it's worth, here is a tip on how to flush the DNS cache for those Mac users who - like me - haven't been able to log in to home-barista since the server move because of those stubborn DNS caches.

Admins, if you find that this works, perhaps you could work the flush DNS for Mac info up on the first page of the old server too, together with the information for windows users.

Number one is always to empty your browser cache, of course. Shortcut is cmd-E in Safari (Safari>Empty cache...).
(Also, holding down the option button while clicking the reload button should force the browser to read the one web page you are at directly from the web site, not using the browser cache. Which doesn't help in this case, though, but it may help in other cases...)

Knowing these tricks is good, but doesn't help you flush DNS cache. When on Mac OS X you can use the Terminal (in Applications/Utilities) for this. It is useful for many other things too, but in this case:
Write the command "lookupd -flushcache" if you are on OS X 10.4 (Tiger) or earlier.
If on 10.5 (Leopard), instead use the new command "dscacheutil -flushcache".

I use 10.4, have tried the above and it has worked for me.
More info on this here:
http://www.macosxhints.com/article.php?story=20071027100807321
and here:
http://inertramblings.com/2004/05/11/mac-os-x-clearing-dns-cache/
LMWDP #047
User avatar
zix
 
Posts: 124
Joined: Sep 07, 2006
Location: Sweden

Link to "Tips for purging DNS cache for Mac users"by HB on Tue Jan 13, 2009 8:11 pm

Thanks Mats, I've added it to the first page for the remaining marooned Mac users. Sorry for the trouble!
Dan Kehn
User avatar
HB
 
Posts: 9892
Joined: Apr 29, 2005
Location: Cary, NC

Link to "Tips for purging DNS cache for Mac users"by zix on Wed Jan 14, 2009 4:40 pm

No trouble, happy to be of help! Good of you to put it up.
I needed to know how it is done anyway. when this has happened before on other forums I always waited it out - but your description of how to do it in the MS DOS window got me thinking there might be a way to do it in OS X Terminal too. macosxhints.com did the rest. So I should thank you for putting me on the track!

P.S. Just found out there is also a small freeware application for those that don't like using Terminal and typing commands:
http://homepage.mac.com/minge/md/products/freeware/dnsflusher/index.html
Download, unzip and double-click on the application. That's all.
D.S.
P.P.S. Sorry I didn't look that up first time...
LMWDP #047
User avatar
zix
 
Posts: 124
Joined: Sep 07, 2006
Location: Sweden


Return to News and Suggestion Box