Mac Neophyte Tips: Clearing the local DNS directory Date: 2008-06-28 02:34:13
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:
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:
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
Comments
Name
Email
URL(optional)
Text
Page time:
0.331 seconds.