How to flush the DNS cache on a Mac (OSX)

August 15, 2012

Mac

DNS requests are cached by storing the locations (IP addresses) of pages you viewed. You may wish to flush (meaning clear, reset, or erase) a DNS cache, especially if you’re a systems administrator or a web developer, so that you have the latest DNS data. Resetting your DNS cache in Mac OS X is actually really easy.

If you are using Mac OS X v10.6, you can use the dscacheutil command. To do this, open Terminal and type:

sudo dscacheutil -flushcache

If you are using OS X Mountain Lion or Lion:

sudo killall -HUP mDNSResponder

 

, ,

Enjoyed this Post?

Subscribe to our e-mail newsletter to receive updates, follow us on Twitter or simply recommend us to friends and colleagues!

3 Responses to “How to flush the DNS cache on a Mac (OSX)”

  1. flush dns on Windows Vista Says:

    Thanks , I have recently been searching for information approximately this subject for ages and yours is the best I have discovered so far. But, what about the bottom line? Are you certain concerning the supply?|What i don’t understood is actually how you’re no longer actually a lot more neatly-appreciated than you may be now. You’re very intelligent.

    Reply

Trackbacks/Pingbacks

  1. How to Set Up PPPOE on A New Mac - Apple Toolbox - October 30, 2012

    [...] How to flush the DNS cache on a Mac (OSX) [...]

  2. Q&A: Where are iMessage files stored? - Apple Toolbox - December 4, 2012

    [...] How to flush the DNS cache on a Mac (OSX) iMessage, messages storage, where messages [...]

Leave a Reply