The personal website for Brandon Steili. A work in progress - both the site and the human.

← Writing

Essay

Flush DNS On MacOS

Published2026·07·05
Filed undermacOS
The macOS logo

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
  1. Click Enter, then input your admin password
  2. Click Enter again

— end —