Sunday, March 14, 2010

Flush DNS Cache on MAC OS X

January 28, 2008 by Greg Ferro · Leave a Comment 

Mac OS X — Clearing or flush­ing the DNS Cache

Once you go to a Web site, or do any DNS lookup, the IP gets cached for quite a while. This becomes a royal pain if you’re a sys­tems admin­is­trator who is in the middle of migrat­ing domains from one server to another. Executing the fol­low­ing clears the cache, restarts the cach­ing dae­mon, and fetches fresh DNS records. And there was much rejoicing…

For Leopard


sudo dscacheutil -flushcache

For Tiger

lookupd -flushcache

(On Windows you do ipconfig /flushdns)

Please rate this post:

  Why Rate Posts?
1 Star - It\\\'s Crud2 Stars - It\\\'s Tosh3 Stars - Something\\\'s missing4 Stars - Needs works5 Stars - Good Enough6 Stars - Good7 Stars - Excellent8 Stars - Brilliant9 Stars - Astonishing10 Stars - Awesomely Godlike? (2 votes, average: 8.00 out of 10)
Loading ... Loading ...

Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!