How to Flush DNS on Mac

flush dns cache on mac

To be honest with you, flushing the DNS cache in Mac Operating System is quite different. It usually depends on the version of the OS that you are using. There are several different methods that people can use in order to flush out the DNS cache on Mac OS or macOS.

In the beginning, you need to know that the DNS cache can Store all the IP addresses of the websites that you will use. By flushing your DNS cache, you can make your browsing experience quite protected and easy. Moreover, you will be able to resolve the errors with the help of the DNS cache flushing. Storing the DNS cache can become a good way to promote swift and speedy connections. Honestly, there are lots of reasons that can make you agree to flush your DNS cache.

With the help of the DNS cache, you can include the invalid records, and entries that you have made with the browsed websites and online internet portals. On the other hand, flushing the DNS cache will automatically remove the invalid records as well as the entries.

  • As you already know, the internet needs a domain name system shortly known as DNS for maintaining the index of all websites as well as their IP addresses.
  • The DNS cache can try to increase the speed of processing.
  • It can handle the name resolution of the recently visited addresses before the request is sent out to the internet.

This will result in helping your computer to repopulate those addresses the next time will try to access the websites. There is a difference between flashing the local DNS cache of a Microsoft Windows OS and macOS. When your systems try to measure how to load the websites, it will go through the DNS cache. In easy words, the DNS cache becomes a critical element of the preceding DNS lookups that your computer will refer to in the mentioned situation.

What Is DNS Cache

DNS Cache is a short-term storage of information handled by the operating system of a computer. DNS cache includes lookups on the preceding DNS on the web browsers or operating systems of a machine. The DNS cache is also known as the DNS resolver cache. Furthermore, the DNS cache includes all the records of previous lookups and tried calls to the internet domains and other websites.

The main purpose of flushing out the DNS cache is to troubleshoot the internet connectivity issues along with troubleshooting the cache toxicity. This procedure will contain removing, rearranging, and clearing the DNS cache.

How Do I Flush My DNS Cache on Mac (Manually)

At the present moment, you have successfully connected some precious details about the DNS cache on any particular system. You know how beneficial the DNS cache can be and why it is necessary to remove it. As mentioned, there are different methods people will use to flush the DNS cache.

Above all methods, the manual flush method is admired by professionals. If you are all set to flush out the DNS cache on a Mac OS manually, you can take a glimpse at the following points right now:

Method 1

This is the first simple method you are going to use in order to flush out the DNS cache in Mac. You do not need to get messed up with any complex procedures. As a user, you just can follow the below-listed steps even after one carefully.

  1. Run the applications: in your Mac OS, you need to run the applications that will begin flushing out the DNS cache procedure.
  2. Go to the Utilities: after running applications now you have to go to the utilities.
  3. Find the “Terminal” option: once you find out the utilities, you will have to find the terminal alternative.
  4. Type the first command “dscacheutil -flushcache”: as soon as you find the terminal option now, you have to type the first command "dscacheutil –flushcache” without asking anyone else.
  5. Use the 2nd command “sudo killall -HUP mDNSResponder”: similarly you can use the second command "sudo killall -HUP mDNSResponder".

With the help of these easy steps, you will be able to flush DNS in macOS in a short amount of time. Even you will not face any kind of problems when you want to flush out the DNS in Mac with the help of the above-mentioned steps. Hopefully, this simple method will work for you whenever you have to flush out the DNS cache on macOS.

Method 2

Like the previously mentioned Method 1 now, you can think about the second method of removing the DNS cache in the Mac OS. Here are the things that you need to do in order to flush DNS in Mac easily.

1. Find Terminal

By navigating the applications, you will have to find out the terminal alternative as mentioned.

2. Aim the MDNS and UDNS

You need to aim for the MDNS and UDNS now.

3. Flushing the DNS

As soon as you navigate to the applications and find out the terminal, you need to use the next commands along with pressing the enter key.

4. Use Mac OS X Snow Leopard Sudo dscacheutil –flushcache command

This command will help you to flush DNS in the Mac OS without any kind of doubt so use it whenever required.

Without any kind of doubt, you just need to make use of the “sudo discoveryutil mdnsflushcache; sudo discoveryutil udnsflushcaches; say flushed” command. With the help of this command, you will be able to flush all the DNS cache out as well as you can reset the DNS cache.

How to Clear DNS Cache on Mac (The Best Way)

If you are not familiar with the ways above, or you are afraid of losing data by mistake, you can use MacDeed Mac Cleaner to help you clear the DNS cache in one click. It won’t do any harm to your macOS and it is very easy to use.

Try It Free

  1. Download Mac Cleaner and install it.
  2. Launch Mac Cleaner, and select “Maintenance” on the left.
  3. Select “Flush DNS Cache” and click “Run”.

Flush DNS Cache

Just in one click, you can flush the DNS cache on your Mac/MacBook/iMac safely. With the help of Mac Cleaner, you can clean junk files on Mac, repair disk permissions, clear browser history on Mac, and more. In addition, Mac Cleaner is well compatible with all Mac OS, such as macOS 13 (Ventura), macOS 12 Monterey, macOS 11 Big Sur, macOS 10.15 (Catalina), etc.


In conclusion, it is evidently proved that flushing the DNS in Mac is not so difficult. If you will follow the proper guidelines and steps, you can easily flush the DNS on your Mac. Flushing the DNS in any particular system ensures the stress-free and enjoyable experience of running the internet on popular web browsers and other internet portals.

Try It Free

How useful was this post?

Click on a star to rate it!

Average rating 4.5 / 5. Vote count: 4

No votes so far! Be the first to rate this post.