How To Clear or Flush DNS Cache MAC OS

Different Version of Mac OS X has different commands to Flush DNS Cache MAC OS. We have listed all the commands for all the versions of Mac OS to flush the DNS cache on Mac. Flushing the DNS cache on MAC can help resolve DNS related problems. Some DNS cache issues can be : web site not found errors or you are not being able to view certain web pages that have recently changed. We’ll show all the commands on how to flush out DNS cache in MacOS for different versions of Sierra.

Flush DNS Cache MAC OS

To flush the cache in MacOS Sierra, follow these steps.

  1. From the Finder, select “Go” > “Utilities” > “Terminal“.
  2. Type the following, then press “Enter“:

Flush DNS Cache on OS X 12 (Sierra) and later

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

Flush DNS Cache on Mac OS X 11 (El Capitan) and OS X 12 (Sierra)

macbook$ sudo killall -HUP mDNSResponder

Flush DNS Cache on 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

Flush DNS Cache on OS X 10.9 (Mavericks)

macbook$ dscacheutil -flushcache; sudo killall -HUP mDNSResponder

Flush DNS Cache on OS X 10.7 (Lion) and 10.8 (Mountain Lion)

macbook$ sudo killall -HUP mDNSResponder

Flush DNS Cache on OS X 10.5 (Leopard) and 10.6 (Snow Leopard)

macbook$ dscacheutil -flushcache

Flush DNS Cache on OS X 10.4 (Tiger)

macbook$ lookupd -flushcach

3. Type the password for your account, then press “Enter“. You have successfully flushed the DNS cache in MacOS.

Leave a Comment