DNS cache reset on Mac OS

Well, this is annoying. Sometimes you just need to refresh (or clear) your local DNS cache. If you, by any chance are using a Mac OS powered machine, you’ll have to first check what version of Mac OS is running on your machine. The command was changed at least twice during the evolution of the OS

MacOS 10.7 and 10.8 :
sudo killall -HUP mDNSResponder

MacOS 10.5 and 10.6:
sudo dscacheutil -flushcache

MacOSĀ 10.4 and earlier:
lookupd -flushcache

Leave a Reply

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

Blue Captcha Image
Refresh

*