How to Flush DNS Cache in MacOS Monterey/ Big Sur, MacOS Mojave, High Sierra, EI Capitan

Last Updated on Jul 10, 2021

Most useful way if you’re a network administrator, Server administrator or web developer. And you’re working with Mac OS X machines likely MacBook Pro, MacBook Air, iMac, or Mac Mini. Furthermore, each version of Mac OS X has a different- different commands to reset the DNS cache. So you should use the exact command according to your system version of OS X.

You may be very familiar with DNS Cache because you may face a situation with DNS cache in Mac OS X. but here about DNS cache who is the beginner in networking. DNS Cache is a small database maintained by a computer system (Mac, Windows, Linux), etc. it accepts DNS quires from local clients such as web browsers (Safari, Google Chrome) and mail transfer agnates. So it collects responses from remote DNS servers. It caches the response to save time later.

But sometimes it might be necessary to reset the cache immediately and re-quarry a DNS Server. Also, if your Mac machine isn’t using the latest DNS entries from the remote server, then you can restart your Mac to update its cached info. But you can’t change DNS entries on your server through restarting your Mac. But you should do Flush DNS Cache in Mac OS X Monterey, El Capitan, OS X Yosemite, and earlier OS X.

We recommend you a terminal command to flush DNS cache in MacOS Monterey, Big Sur, Mac OS Mojave,  X EI Capitan, OS X Yosemite (10.10.4), MacOS Sierra (10.12).

For MacOS High Sierra and MacOS:

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

Terminal Command to flush the DNS Cache in Mac OSX.

Steps how to Flush DNS Cache in Mac OS X Monterey, Big Sur, EI Capitan, OS X Yosemite, Sierra

To reset flush DNS cache in Mac you need to use the Terminal (known as CMD in windows).

Step 1. Launch Terminal using Spotlight (Command + Space) for Mac and Ctrl + Space for Windows keyboard.

Step 2. Enter bellow Command for Apple Mac OS X 10.10.4, OS X 10.11, 10.12 and in future coming OS X,

Sudo killall -HUP mDNSResponder
  • how to Flush DNS Cache in Mac OS X EI Capitan or OS X Yosemite 10.11 and 10.10.4
reset flush dns on mac os x 10.11

Step 3. Press return key and enter the Admin password when requested.

It’s Say flushed. So that’s it.

While you can use the below command to reset DNS cache on OS X Yosemite 10.10. OS X 10.10.1, OS X 10.10.2 and OS X Yosemite 10.10.3, MacOS Sierra

sudo discoveryutil mdnsflushcache 

Do you want to know flush DNS has changed?

Then to determine if a name server or IP has actually changed, you can use the ‘dig’ command with the URL likely:


Let’s know do you have any latest version of OS X cache tricks. Text us in the comment box.

HowtoiSolve Staff

Jaysukh Patel is the founder of howtoisolve. Also self Professional Developer, Techno lover mainly for iPhone, iPad, iPod Touch and iOS, Jaysukh is one of responsible person in his family. Contact On: [OR]

We will be happy to hear your thoughts

Leave a reply