Wednesday, June 10, 2015

OS X 10.11 El Capitan - Flush DNS

On OS X 10.11 El Capitan, flushing DNS uses the same commands as 10.9 and previous. If you've seen the news, the last 10.10.4 betas showed that Apple has removed discoveryd and discoveryutil.

To flush your DNS on OS X 10.11, issue this command in terminal:

sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder;say flushed 

Friday, June 5, 2015

OS X 10.10.4 Yosemite - Flush DNS

I didn't realize this until now, but it looks like with Apple's removal of 'discoveryd' in the newest beta, 'discoveryutil' is also gone from the command line. To flush the DNS cache, we now need to revert back to the commands from 10.9 Mavericks.

I only noticed when clearing my cache suddenly resulted in "discoveryutil: command not found" errors when running "sudo discoveryutil mdnsflushcache". Looks like it's not my system acting up, since it carries across reboot.

For reference, the current command to use in the new 10.10.4 betas, and presumably moving forward, is:

sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder;say flushed