How To Flush DNS On MacOS Sonoma

Are you wondering how to flush the DNS on your Mac running the latest Sonoma operating system? If so, you’ve come to the right place.

Flushing the DNS cache on your Mac can help resolve network-related issues and ensure that your system is using the most current DNS information.

In this guide, we’ll walk through the steps to flush the DNS cache on your Mac running the Sonoma OS, providing you with a clear and effective solution to maintain optimal network connectivity.

How To Flush DNS On MacOS Sonoma?

Flush DNS On macOS Sonoma

To flush DNS on macOS Sonoma, you have to follow steps including opening terminal, entering flush command, authenticate. Later you have to wait for completion, and then close terminal.

Steps To Flush DNS Cache On MacOS Sonoma

Flushing the DNS cache on macOS Sonoma is a troubleshooting step used to address issues with accessing websites and online services.

This process removes outdated or incorrect DNS entries that may be causing connection problems.

Open Terminal:

Screenshot 2024 03 11 at 3.26.56 PM

The Terminal application is where you can enter commands directly into your Mac’s operating system.

  • To open Terminal, use Finder to navigate to the Applications folder, then Utilities, and double-click on Terminal.
  • Alternatively, open Terminal using Spotlight by pressing Command + Space, typing “Terminal“, and pressing Enter.
  • Flushing the DNS cache requires using Terminal because it is a command-line operation not available through the graphical user interface.

Enter Flush Command:

Screenshot 2024 03 11 at 3.27.42 PM
  • Type the following command into the Terminal window: sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
  • Press Enter.


  • Since this is a system-level command, macOS will require you to enter your administrator password.
  • This is the same password you use when installing new software or logging into your Mac.
  • The Terminal does not show any characters as you type your password, which is normal and a security feature.

Wait for Completion:

  • Once you’ve entered your password and pressed Enter again, the command will run.
  • There is no progress bar or confirmation message in Terminal to indicate that the DNS cache has been flushed.
  • However, as long as you’ve entered the command correctly and there were no error messages, you can be confident that the DNS cache has been cleared.

Close Terminal:

  • You can close the Terminal by typing exit and pressing Enter, or simply using the keyboard shortcut Command + Q.

After completing these steps, your DNS cache should be cleared, which can help resolve any lingering domain resolution issues caused by outdated or corrupted DNS information.