dscacheutil
SafeFlush DNS (Mac)
dscacheutil -flushcache
Clears the macOS DNS cache to reset name resolution.
Examples
sudo killall -HUP mDNSResponderRestart mDNSResponder
Syntax
dscacheutil -flushcache; sudo killall -HUP mDNSResponder
Before you run it
Needs admin (sudo).
Related commands
- ipconfigShow/refresh IP configuration
The same reference, with no signal at all
Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.
Get it free on the App Store