Udo's Techblog

Feed Rss

Mac Neophyte Tips: Clearing the local DNS directory

06.28.2008, Uncategorized, by .

Can’t log on to your favorite website? Google.com went down? Another twitter outage?

There is a bug in the Mac name service cache which sometimes causes the machine to lose track of a domain name. It makes you believe the server has gone offline when, in reality, OS X just can’t find its IP address any more. Apparently, at some stage, the local DNS cache tries to fetch a domain’s IP address, fails, gets discouraged and subsequently gives up on the whole thing.

Anyway, the fix for pre-Leopard OS X is widely known:

sudo lookupd -flushcache

However, things have changed in 10.5.2, and quite often the command has been misprinted all over the net. Here is the correct format to flush your DNS cache:

dscacheutil -flushcache

Possibly Related Posts:

  1. Mac Neophyte Tips: Changing the default Java version
  2. Mac Neophyte Tips: FileVault on Removable Drives

More:

Mac Neophyte Tips: Changing the default Java version
Even though it worked for me, this fix has given...

Leave a Reply

Your email address will not be published. Required fields are marked *

*


- five = 0

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>