How to flush the DNS cache on Apple Mac OSX 10.8+

Just a quick post if only to make a note of this for myself.  For years the method of clearing the DNS cache on a Mac has been

dscacheutil -flushcache

This command runs OK on OSX 10.8+ but doesn’t actually seem to clear the DNS cache.  On OSX 10.8+ the command you need is:

sudo killall -HUP mDNSResponder

Speak Your Mind

*