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.
- Advertisment -

Latest Articles

Best iPad Apps for Assessment in 2019: Enable, Engage, and Empower Students

Teachers play a significant role in shaping the future of kids. They not only educate students on different subjects but also assess their performance...

How to Get a Paper Tape for the Mac Calculator App: Save or Print your Equations for Easy Access

The Calculator app on the Mac has many different use cases, and almost everyone use it once in a while. What you may not...

Quick Tip: Jump to Rightmost Tab or Switch Between Tabs in Safari, Chrome, and Firefox on Mac

With keyboard shortcuts, navigating tabs in a web browser is a bit faster. Times when I'm doing extensive web browsing, I prefer to use...

MapQuest iPhone & iPad App: The Best Alternative to Apple Maps

Apple has its own Apple Maps; Google also has its Maps app for all devices. But when a relatively smaller company develops a similar...