Flush DNS on MacOS

To flush the Domain Name System (DNS) cache on a Mac, you can use Terminal to enter the following command string:

  1. Open Finder
  2. Click Applications
  3. Scroll down to Utilities and click it
  4. Open Terminal
  5. In the Terminal window, enter the command:

    sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
    
  6. Click Enter, then input your admin password

  7. Click Enter again