Clear DNS chache

To clear the DNS cache on MacOS, follow these steps:

  1. Open the Terminal: You can find this by going to Finder, then to Applications, and then into the Utilities folder.

  2. Depending on your version of MacOS, you will need to input different commands.

    • For MacOS Monterey, Big Sur, Catalina, Mojave, High Sierra and Sierra:
      Type
sudo killall -HUP mDNSResponder; sleep 2; echo macOS DNS Cache Reset | say
  • For MacOS El Capitan and Yosemite:
    Type
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder; say DNS cache has been flushed
  1. Press Enter.

  2. You will be asked for your password. This is the same password you use to log in to your Mac. Enter it and press Enter again.