If you are a developer, you may understand the importance of resetting DNS cache. If you have changed the name servers of a domain, you need to flush the existing DNS cache. There could be more reasons why you need to reset or clear DNS cache. If you are using MacOS and do not know how to do it, here is the guide. In this article, I will tell you how to clear or reset DNS cache in MacOS High Sierra.
Also see: How to Reset Mac’s NVRAM, PRAM, and SMC
In MacOS High Sierra, you can reset the DNS cache by using the terminal app. You just need to follow these steps.
Step 1: Launch the Terminal Application.
Step 2: At the command line, type the following command and hit enter
sudo killall -HUP mDNSResponder; sleep 2; echo macOS DNS Cache Reset | say
Step 3: Wait a moment until it says “macOS DNS Cache Reset” appear in Terminal the DNS cache reset has been successful.
Now relaunch the browser or any other app where you were testing something. Relaunch is necessary for the changes to take effect.
As the heading of this article says, the above method is for macOS High Sierra. If you are on any other version of MacOS, you need to follow other Steps. Search on UseThisTip for older articles and you will get the result.