Kinda Code
Home/Mac/How to Flush DNS Cache in macOS Monterey, Big Sur, and Catalina

How to Flush DNS Cache in macOS Monterey, Big Sur, and Catalina

Last updated: May 07, 2022

Clearing the DNS cache can solve some network problems as well as prevent network security threats, malicious attacks, and DNS cache poisoning.

This article shows you how to clear your DNS cache in macOS Monterey (12.x), Big Sur (11.x), and Catalina (10.x).

1. Open a terminal window and execute the following command:

sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder

Screenshot:

2. You’ll be asked for your password. Enter it to continue:

3. Everything is done. You’ll see no output messages.

That’s it. Further reading:

You can also check out our macOS category page for the latest tutorials and examples.