solvit.io

Flush the DNS cache in macOS (Mac OS X)

Sierra (10.12)
$ sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder;
El Capitan (10.11)
$ sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder;
Yosemite (10.10)
$ sudo discoveryutil mdnsflushcache
Mavericks (10.9)
$ sudo killall -HUP mDNSResponder
Mountain Lion (10.8)
$ sudo killall -HUP mDNSResponder
Lion (10.7)
$ sudo killall -HUP mDNSResponder
Snow Leopard (10.6)
$ sudo dscacheutil -flushcache
Find more solutions about: , , ,