DNSキャッシュクリア

macOS Mojave(マックオーエスモハベ)

sudo killall -HUP mDNSResponder; sleep 2;

macOS High Sierra(Version 10.13)

sudo killall -HUP mDNSResponder; sleep 2

macOS Sierra(Version 10.12)

sudo killall -HUP mDNSResponder

El Capitan(Version 10.11)

sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder

Yosemite(Version 10.10)

sudo discoveryutil mdnsflushcache;sudo discoveryutil udnsflushcaches

Mavericks(Version 10.9)

dscacheutil -flushcache; sudo killall -HUP mDNSResponder

Mountain Lion(Version 10.8)

sudo killall -HUP mDNSResponder

Lion(Version 10.7)

sudo killall -HUP mDNSResponder

Snow Leopard(Version 10.6)

sudo dscacheutil -flushcache

Leopard (Version 10.5)

sudo dscacheutil -flushcache

Tiger (Version 10.4)

lookupd -flushcache