You may need to clear DNS cache for many reasons. This article explains how to flush DNS on Mac.
Often users may change DNS settings on Mac. It has many benefits. But, Mostly, users do it to improve the internet experience. However, After changing, it may not take effect. For this, you must flush your DNS cache. It allows Mac to use the new DNS addresses for internet connectivity.
How to Flush DNS on MacOS
To clear DNS cache on a Mac computer, there are two options. You can do it from the terminal. Or you can use third-party software. It is your choice which option you will choose. This article is about to explain both of these methods.
Flush DNS using Terminal without Any Third-Party Software
Your macOS comes with an amazing terminal (Command Line Interface). By using specific commands, you can flush DNS settings. This method is valid for all recent MacOS versions, especially the latest macOS BigSur. To do it, follow these instructions.
- At first, Open the Terminal app on your Mac. You can find and open it from the launchpad. Or you can type terminal in the spotlight search.
- However, After opening the terminal, paste the following command and press enter.
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
- Now, You will need to type your mac password (Admin Password) and press enter.
It will flush the DNS settings. If you have changed the DNS, it should now take effect.
Flush DNS on Mac using Third-Party Software
There are many software that can change and also flush DNS settings on your Mac. You can choose any software you want. But, Here I am showing how to flush DNS using CleanMyMac X. It has many other features to help you. Besides, It is fully compatible with the latest Apple Silicon Macs. You can read the CleanMyMac X Review to know more about it. However, To flush DNS cache using this software, you can follow these instructions.
- At first, Download and Install CleanMyMac X.
- Now, Open this software.
- Then, Go to the Maintenance tab.
- Select the option “Flush DNS Cache” and click on Run.
It will automatically flush the DNS cache.
These are the two ways to clear the DNS cache on macOS. However, You can let us know which method you prefer in the comment box.