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
Leave a reply