Knowledge base » Support »

How do I flush my DNS on macOS


To flush your DNS in macOS fix open Terminal then type one of the following depending on which version of macOS / OS X you are using :


El Capitan, Sierra (OS X 10.11, macOS 10.12)

sudo killall -HUP mDNSResponder

Yosemite (OS X 10.10)

10.10.4+

sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder

10.10.1-3

sudo discoveryutil udnsflushcaches

Mavericks (OS X 10.9)

dscacheutil -flushcache; sudo killall -HUP mDNSResponder

Lion, Mountain Lion (OS X 10.7, 10.8)

sudo killall -HUP mDNSResponder

Leopard, Snow Leopard (Mac OS X 10.5, 10.6)

dscacheutil -flushcache

Tiger (Mac OS X 10.4)

lookupd -flushcache

 

Also Read