Posts Learn Components Snippets Categories Tags About

How to Flush your DNS Cache on macOS Big Sur

Learn how to easily flush/clear your DNS cache on macOS Big Sur

Created on Jul 30, 2021


To clear the DNS cache on macOS Big Sur, you can open up the "Terminal" app and run the command below.
run sudo killall -HUP mDNSResponder

Other commands for other macOS versions.
  • In macOS El Capitan or newer
    • sudo killall -HUP mDNSResponder
  • For macOS Yosemite
    • sudo discoveryutil udnsflushcaches
  • In macOS Lion, Mountain Lion, and Mavericks
    • sudo killall -HUP mDNSResponder
  • In macOS Snow Leopard
    • sudo dscacheutil –flushcache
  • For macOS Leopard
    • run sudo lookupd –flushcache
  • And in macOS Tiger
    • lookupd –flushcache

Snippets by

PostSrc poster


Full stack developer mainly focusing on the front end side of the web. The main author of PostSrc and loves writing tutorial and guides online.

Load comments for How to Flush your DNS Cache on macOS Big Sur


PostSrc Code Components

Collection of Tailwind CSS components for everyone to use. Browse all of the components that's right for your project.

View Components

Other Code Snippets