Site icon Thetechhacker

How to flush or clear DNS Cache in macOS Catalina

How to flush or clear DNS Cache in macOS Catalina

Are you facing trouble while opening a website in macOS Catalina? DNS or Domain Name System resolves website names from IP addresses. If your browser is unable to load the website then the most obvious problem is the DNS error.

If you are facing this problem in macOS Catalina, then we have the solution for you. Reset and flush DNS cache will solve this error and it loads the websites properly. Also, clearing the cache will speed the website loading speeds faster in all OS’s including macOS Catalina.

How to Flush or Clear DNS Cache in macOS Catalina

There are several steps involved in flush DNS Cache in macOS Catalina which are very easy to follow. All you need to open Terminal on your mac to run a few commands.

1. macOS Catalina

  1. Open Terminal (Application – > Utilities – > Terminal or click Go- > Utilities- > Terminal).
  2. Now type the below command in Terminal and hit the enter button.
    sudo killall -HUP mDNSResponder
  3. If you are using a password for authorization, then you need to enter the macOS password to execute the command.
  4. After, close the command.

For the older macOS versions, follow the below steps.

2. macOS Mojave

  1. Open Terminal (Application – > Utilities – > Terminal or click Go- > Utilities- > Terminal).
  2. Now type the below command in Terminal and hit the enter button.
    sudo killall -HUP mDNSResponder
  3. If you are using a password for authorization, then you need to enter the macOS password to execute the command.
  4. After, close the command.

3. macOS High Sierra

  1. Open Terminal (Application – > Utilities – > Terminal or click Go- > Utilities- > Terminal).
  2. Now type the below command in Terminal and hit the enter button.
    sudo killall -HUP mDNSResponder
  3. If you are using a password for authorization, then you need to enter the macOS password to execute the command.
  4. After, close the command.

4. macOS Sierra

  1. Open Terminal (Application – > Utilities – > Terminal or click Go- > Utilities- > Terminal).
  2. Now type the below command in Terminal and hit the enter button.
    sudo killall -HUP mDNSResponder
  3. If you are using a password for authorization, then you need to enter the macOS password to execute the command.
  4. After, close the command.

5. macOS El Capitan

  1. Open Terminal (Application – > Utilities – > Terminal or click Go- > Utilities- > Terminal).
  2. Now type the below command in Terminal and hit the enter button.
    sudo killall -HUP mDNSResponder
  3. If you are using a password for authorization, then you need to enter the macOS password to execute the command.
  4. After, close the command.

6. macOS Yosemite

  1. Open Terminal (Application – > Utilities – > Terminal or click Go- > Utilities- > Terminal).
  2. Now type the below command in Terminal and hit the enter button.
    sudo discoveryutil udnsflushcaches
  3. If you are using a password for authorization, then you need to enter the macOS password to execute the command.
  4. After, close the command.

7. macOS Mavericks

  1. Open Terminal (Application – > Utilities – > Terminal or click Go- > Utilities- > Terminal).
  2. Now type the below command in Terminal and hit the enter button.
    sudo killall -HUP mDNSResponder
  3. If you are using a password for authorization, then you need to enter the macOS password to execute the command.
  4. After, close the command.

8. macOS Mountain Lion

  1. Open Terminal (Application – > Utilities – > Terminal or click Go- > Utilities- > Terminal).
  2. Now type the below command in Terminal and hit the enter button.
    sudo killall -HUP mDNSResponder
  3. If you are using a password for authorization, then you need to enter the macOS password to execute the command.
  4. After, close the command.

9. macOS Lion

  1. Open Terminal (Application – > Utilities – > Terminal or click Go- > Utilities- > Terminal).
  2. Now type the below command in Terminal and hit the enter button.
    sudo killall -HUP mDNSResponder
  3. If you are using a password for authorization, then you need to enter the macOS password to execute the command.
  4. After, close the command.

10. macOS Snow Leopard and older versions

  1. Open Terminal (Application – > Utilities – > Terminal or click Go- > Utilities- > Terminal).
  2. Now type the below command in Terminal and hit the enter button.
    sudo lookupd -flushcache
  3. If you are using a password for authorization, then you need to enter the macOS password to execute the command.
  4. After, close the command.

That’s it. Once you follow the above steps you will clear DNS cache in Mac. Now restart your browser and enjoy the error-free browsing experience.

Exit mobile version