How to Clear DNS Cache on Mac Ventura, Monterey… (Flush DNS)

Flush dns mac with MacOS Ventura & Earlier macOS is easy on All Macs (iMac, MacBook, MacBook Pro, MacBook Air, Mac Mini). Are you looking to clear and reset the DNS cache in macOS? Then we have listed some best methods to do so. Periodically users need to reset the DNS cache because sometimes a specific domain or name server is cached or Mac DNS settings have been changed. At that time you need to remove the existing DNS cache. So moving further we will see how to reset the DNS cache on Mac.

Execute Command in Terminal: Below commands are case sensitive and use space where required.

How to Flush DNS Cache On Mac in 2 Ways

1→ Launch “Terminal” directly from the Home screen using Spotlight. Or “Applications” > “Utilities” > “” or Type “Terminal” in Spotlight search.


2→ Now, enter the command below, To execute use your Mac’s system administrator password [Not an Apple ID].

sudo killall -HUP mDNSResponder; sleep 2; echo macOS DNS Cache Reset | say
1 DNS Cache Reset on MacOS Mojave on Mac

3→ Hit “return key” and then enter the Admin password and again enter.

4→ Wait until “DNS cache has been cleared” appears on the terminal screen.

5→ Quit “Terminal”.

You must close all the applications running connected to the internet and wait for the changes to take place. Sometimes the changes take place through a simple refresh in the apps.

If in case the above terminal code doesn’t workout for you then you should break that command and write like this,

sudo killall -HUP mDNSResponder && echo macOS DNS Cache Reset

Method 1: How to clear DNS Cache on Mac

If you have made DNS servers and still you didn’t encounter any changes, then you should clear the DNS cache and again check it this workout for you. It is not necessary to close all the applications which use DNS like Firefox, Safari and other web browsers.

Step 1: Launch “Terminal” from the “Utilities” which you will find in “Applications”.

Step 2: Enter the command with accuracy,

Sudo killall –HUP mDNSResponder;say DNS cache has been flushed
2 DNS Cache has been flushed on Mac running MacOS Mojave

Step 3: Hit return key and enter Admin password.

Step 4: It will take some time to “clear DNS cache”.

Also, you will get a kind of voice message from the system that DNS cache has been flushed.

Alternatively, we have one more command to clear DNS cache if the above one doesn’t work for you,

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

Method 2: How to Clean DNS Cache on Mac

Follow the steps to Reset and flush the DNS Cache,

Step 1: Launch “Terminal”.

Step 2: Enter the following command,

sudo killall -HUP mDNSResponder && echo macOS DNS Cache Reset

Step 3: Once you enter the command tap return key and enter the Admin password.

Step 4: It will take few moments to clear cache.

Using Dig to Check Query Times

This method is used to check whether the DNS is working perfectly.

Step 1: Open “Terminal”.

Step 2: Type “dig”. In place of our website, you can enter any website to check query time.

5 Flush Domain NS cache in Your Network (1)

Step 3: You can check the result in “Query Time”. If query time is more then change macOS DNS settings to Google DNS.

After changing the DNS server to Google DNS, you can verify the query time again by the same dig command.

I hope you get pro tips, why you shouldn’t share this helpful guide with others. Share this page on your profile and recommend it to your friends for more tips and guide on MacOS Ventura, Monterey issues and problems.

Reasons to Flush DNS Cache on Mac?

To Improve Mac Security

You might be thinking how could flushing a DNS Cache improve the security of my Mac? It does! Safari stores information like your browsing history, downloading history, and more on Mac. So, anyone with your Mac’s password can access that information. But if you clear the DNS cache, all that data will be removed from the Mac.

To Speed Up Mac

DNS Cache creates extra load on your Mac, no doubt it also boosts up site loading speed while browsing. However, flushing the DNS cache regularly is beneficial when Mac slows down or faces internet hiccups in performance.

To fix Bad Network Connections

As you know, network connections and DNS cache depend on each other and if any of them starts misbehaving, it should be fixed. Therefore, if Wi-Fi stops working or Mac shows bad network connections, DNS Cache Flush should be done.

Flush DNS Cache for Windows PC!

Run the command on windows’ command prompt, Use Windows + R key
to open the run window. Type the below command and press enter key
from the keyboard to run.


Thanks for visiting us, I Hope you guys successfully run the command on
your Mac that Clear or Flush DNS Cache on Mac and Network.
More help and related queries.

0 Share
0 Tweet
0 Pin it
0 Share
0 Share
Leave a Reply

Your email address will not be published. Required fields are marked *

Previous Post
How to Access internet on Apple Watch in watchOS 5

How to Connect Apple Watch to the Internet in WatchOS 9.0.1: Step-by-Step Guide

Next Post

How to Change the Accent and Highlight Colors on Mac Ventura, Monterey

Sign Up for Our Newsletter! 14000+ Joined