Posts

Como zerar cache DNS do MacOS X

Salve!

Para zerar o cache de dns do MacOS X de forma definitiva, segue os comandos:

OS X 12 (Sierra) and later

macbook$ sudo killall -HUP mDNSResponder;sudo killall mDNSResponderHelper;sudo dscacheutil -flushcache

OS X 11 (El Capitan) and OS X 12 (Sierra)

macbook$ sudo killall -HUP mDNSResponder

OS X 10.10 (Yosemite)

Versions 10.10.4+

macbook$ sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder

Versions 10.10.1, 10.10.2, 10.10.3

macbook$ sudo discoveryutil udnsflushcaches

Older versions

OS X 10.9 (Mavericks)

macbook$ dscacheutil -flushcache; sudo killall -HUP mDNSResponder

OS X 10.7 (Lion) and 10.8 (Mountain Lion)

macbook$ sudo killall -HUP mDNSResponder

OS X 10.5 (Leopard) and 10.6 (Snow Leopard)

macbook$ dscacheutil -flushcache

OS X 10.4 (Tiger)

macbook$ lookupd -flushcache