Nur Rony
Polyglot Programmer, DevOps and Forever Learner

Flush DNS Cache in macOS Mojave

Flush DNS Cache in macOS Mojave

Flushing the DNS resolver cache can help resolve DNS related problems in MacOS Sierra. Issues would include web site not found errors or not being able to view certain web pages that have changed.

To flush the cache in MacOS Sierra, follow these steps.

  1. From the Finder, select “Go” > “Utilities” > “Terminal“.
  2. Type the following, then press “Enter“:sudo dscacheutil -flushcache
  3. Type the password for your account, then press “Enter“.

You have successfully flushed the DNS cache in MacOS Sierra.