Here's How To Clear DNS Cache In macOS Sierra And macOS High Sierra

The DNS (Domain Name System) cache is a temporary database. It includes recent records as well as attempted visits to websites along with internet domains. To troubleshoot cache poisoning or other internet connection issues, you may need to clear a DNS cache on your Mac. So here is how to clear DNS cache in macOS Sierra or macOS High Sierra.

   1. Open the Terminal application, found in the Utilities folder within Applications.
   2. Now, you need to enter the command syntax given below.

sudo killall -HUP mDNSResponder;say DNS cache has been flushed

   3. Hit the Return/Enter key and enter the admin password when requested.
   4. Wait a few moments for the DNS cache to be cleared.

You need to wait until the DNS cache is completely flushed out. Once it is done, a verbal audio alert will confirm that DNS cache is flushed on your Mac. And that'an easy way to clean up DNS cache in macOS Sierra or High Sierra.

In case if the above command will not work, but an alternative command is available for macOS Sierra 10.12.3 and later that adds an additional focus on a helper process as well.

sudo killall -HUP mDNSResponder;sudo killall mDNSResponderHelper;sudo dscacheutil -flushcache;say MacOS DNS cache has been cleared

This can be particularly important if you have recently made changes to DNS servers in Mac OS and are finding the changes have not taken effect. You may also need to quit and relaunch any active applications which are using DNS or networking, including Safari, Chrome, SSH, and other similar tasks dependent on domain name correspondence.

Via OSXDaily And iGeekBlog, Image Credit IGB And Indabaa
Previous Post Next Post