How to Reset DNS Cache in macOS High Sierra

MacOS High Sierra

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

reset DNS cache in macOS High Sierra

Step 3: Wait a moment until it says “macOS DNS Cache Reset” appear in Terminal the DNS cache reset has been successful.
Exit terminal.

Now relaunch the browser or any other app where you were testing something. Relaunch is necessary for the changes to take effect.

Final Words

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.

Tags: | |

Deepanker Verma is the founder of Techlomedia. He is a tech blogger, developer and gadget freak.


Similar Articles

0 Comments

Leave a comment

Comment policy: We love comments and appreciate the time that readers spend to share ideas and give feedback. However, all comments are manually moderated and those deemed to be spam or solely promotional will be deleted.

2020 UseThisTip | Part of Techlomedia Internet Pvt Ltd Developed By Deepanker