How to Flush DNS Cache in macOS Sierra or macOS High Sierra

You need to use a new command to clear or reset DNS cache in macOS Sierra and macOS High Sierra on Mac. Refer this quick guide to know how it's done:

A DNS (Domain Name System) cache (aka DNS resolver cache) is a temporary database. It consists of the records of recent as well as attempted visits of websites along with internet domains. To troubleshot cache poisoning or other internet connectivity issues, you may need to clear a DNS cache on your Mac. The process of flushing DNS cache in macOS Sierra and macOS High Sierra requires a new command.

When you clear or reset the DNS cache on your Mac, it removes all the entries. Besides, it also gets rid of invalid records. More after the jump:

Sponsored Links

How to Flush DNS Cache in macOS Sierra or macOS High Sierra

How to Clear DNS Cache in macOS Sierra or macOS High Sierra

Step #1. First off, you have to open the Terminal app.

Simply search Terminal using Spotlight search or head over to Finder → ApplicationsUtilities.

 

Launch Terminal Using Spotlight on Mac

Sponsored Links

Step #2. Now, you need to enter the command syntax given below.

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

Enter Command to Flush DNS in macOS High Sierra

Step #3. Now, press the Return/Enter key → Up next, enter the admin password.

Sponsored Links

Flush DNS Cache on Mac in macOS High SierraIt’s important for the privacy of sudo.

Now, you need to wait for a few moments until the DNS cache is completely flushed out.

Once it’s done, a verbal audio alert will confirm that DNS cache is flushed on your Mac.

Just in case the aforementioned command hasn’t worked in resetting DNS cache, use this alternative.

Sponsored Links

Step #1. Open Terminal and enter the following command.

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

Enter Command to Clear DNS Cache on Mac Running macOS HIgh Sierra

Step #2. Enter System password and press the Enter/Return key.

Sponsored Links

Clear DNS Cache on Mac Running macOS HIgh Sierra

That’s done!

Wrapping up:

So, that’s the easy way to clean up DNS cache in macOS Sierra or High Sierra.

If you want to erase DNS cache on your on the older versions of macOS, head over to this post.

You might want to refer these posts as well:

Like this post? Download our app and remain connected with us via Facebook, Twitter, and Google Plus to read more such helpful guides.

Jignesh Padhiyarhttps://www.igeeksblog.com
Jignesh Padhiyar is the co-founder of iGeeksBlog.com who has a keen eye for news, rumors and all the unusual stuff that happens around Apple products. During his tight schedule, Jignesh finds some moments of respite to share side-splitting contents on social media.

Latest Articles

How to Permanently Delete Instagram Account from iPhone, Android, or PC

An overdose of social media might cause exasperating effects on your mind; for this reason, users decide to delete their Instagram accounts. Many users...

Best Sleep Tracker Apps for Apple Watch: Monitor The Time When You Snooze Mind

According to fitness experts, sound sleep is part and parcel of your fitness activities. Though there are some sleep tracking apps available for iPhone,...

Massive Giveaway from MacXDVD: MacX MediaTrans Giveaway & Win iPhone XR

It's almost Christmas, and everyone's having discounts going on. But what if I tell that there's a giveaway with three different campaigns? Yes, MacXDVD...

Qualcomm Case Takes a New Turn; Apple Ready to Push Software Update in China

A couple of days back Wall Street Journal reported that Apple was hit with a sales ban on older iPhones in China. Law authorities...