Originalement la commande pour supprimer la cache DNS sur MacOs X pre-10.7 (avant Lion) est:
sudo dscacheutil -flushcache
OS X 10.7–10.9 (Lion, Mountain Lion, Mavericks):
sudo killall -HUP mDNSResponder
OS X 10.10+ (Yosemite):
sudo discoveryutil mdnsflushcache
OS X 10.11, 10.12+ (El Capitan, Sierra):
sudo killall -HUP mDNSResponder