5/5 - (2 votes)

Some browsers and devices store website location data in your system for quicker access to the DNS Cache. DNS Cache needs to be flushed to remove stored website location details. Here are some of the common ways to flush your DNS cache.

DNS, or a Domain Name System, is primarily what resolves website names into their respective IP addresses. So, if you are encountering an issue on your Mac where the name server is not resolving properly, or if you want a DNS change to be noticed by your system, you might have to reset and flush the DNS cache in macOS Catalina. This can also come in handy if you have made edits to your /etc/hosts file, and you want the changes to register without having to reboot your Mac. So, if you want to reset and flush the DNS cache on your Mac os Catalina, follow below steps to know how to do it.

Reset and Flush/Clear DNS Cache in macOS Catalina

The process to reset and flush or clear DNS cache in macOS Catalina is actually very easy. All it requires is for you to enter one command in the Terminal, and you’re done. Well, technically, it’s two commands in one line. If you want to flush DNS cache on a Mac, simply follow the steps below:

1. Launch Terminal, and type below command first.

sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder

2. Then it will ask to enter a password. Enter your Mac login password and hit Enter.

3. If everything goes right then you have successfully reset, and flushed the DNS cache on macOS Catalina. If you were encountering any issues with name servers, and such, they should now get resolved. You can try and do a “dig“, or an “nslookup” on a website you want, to see if your DNS issues have resolved.

Reset and Flush DNS Cache DNS Issues [Fixed]

You can reset and clear DNS cache in macOS Catalina to fix most DNS issues that you might be facing. The method mentioned in the article works for Mac OS X 10.10, and even on macOS Catalina. If you face any issues with the commands I mentioned, feel free to let me know in the comments section down below.

5 COMMENTS

  1. I entered the command in terminal and then entered the password when it was called for. Terminal then showed as if I had to enter something else. Has this reset and flushed the cache? How do I check?

  2. We do a lot of video calls so I flush the DNS cache fairly often on my PC with ipconfig /flushdns this gets rid of the built-up video packets. What is an equivalent on my mac?

  3. Unfortunately, that doesn’t work.

    I have /etc/hosts filled with a vm on my laptop to connect to it. now I removed the vm and recreated the same vm name but it got a new ip. when I even do a ping to the hostname, it still pings the old ip. even after performing the above actions. Any clue? is there a memory only version of /etc/hosts which is being used?

LEAVE A REPLY

Please enter your comment!
Please enter your name here