How to clear the DNS cache with Terminal in macOS

How to clear the DNS cache with Terminal in macOS

This article was written by Upper Hand Digital's strategic partner: Next Level Web Design


The post How to clear the DNS cache with Terminal in macOS appeared first on Upper Hand Digital’s strategic partner’s website: Next Level Web Design. and was written by Administrator

To clear DNS cache on macOS systems, follow the steps below.

MacOS 10.15: Catalina

To flush the local DNS cache on macOS Catalina, follow the following steps.

  1. Open Terminal (Application  Utilities › Terminal or press CMD+SPACEBAR and Type in ‘Terminal’ then select the black Terminal app in the list)
  2. When Terminal Starts type: ‘sudo killall -HUP mDNSResponder’ and press Enter to run the command.
  3. Enter your password (the password usually doesn’t show in Terminal but press enter when you’ve entered the password) which is required because you ran the command using ‘sudo ‘
  4. Press Enter. Close the Terminal.
  5. That’s it! Your local DNS cache in macOS Catalina should have been cleared!

The post How to clear the DNS cache with Terminal in macOS appeared first on Next Level Web Design.

Source link

Leave a Reply

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