Instruction to Flush DNS cache locally under macOS Mojave, High Sierra, Sierra,

Instruction to Flush DNS cache locally under macOS Mojave, High Sierra, Sierra,
0

#1

Too many mac users are looking for the right ways to Flush DNS cache. The following instructions will guide you to do that in macOS Mojave, High Sierra, Sierra, El Capitan, Yosemite, Mavericks, Mountain Lion, Lion, Leopard, Snow Leopard.

How to flush DNS Cache under MacOS Mojave 10.14

  • Launch Terminal (Found under /Application/Utilities/)
    1543055040158-terminal

  • Enter the following command line:

sudo killall -HUP mDNSResponder;say DNS cache has been flushed

or

sudo killall -HUP mDNSResponder, sleep 2, echo macOS DNS Cache Reset | say

How to flush DNS Cache under MacOS High Sierra 10.13

Enter the following command line:

sudo killall -HUP mDNSResponder;say DNS cache has been flushed

How to flush DNS Cache under MacOS Sierra 10.12

Enter the following command line:

sudo killall -HUP mDNSResponder;say DNS cache has been flushed

How to flush DNS Cache under MacOS 10.11 El Capitan

Enter the following command line:

sudo killall -HUP mDNSResponder

How to flush DNS Cache under MacOS 10.10.x Yosemite

  • Enter the following command line on MacOS 10.10.4:
sudo killall -HUP mDNSResponder
  • Enter the following command line on MacOS 10.10.0 - 10.10.3:
sudo discoveryutil mdnsflushcache

How to flush DNS Cache under MacOS 10.9 - 10.8 - 10.7: Mavericks - Mountain Lion - Lion

Enter the following command line:

sudo killall -HUP mDNSResponder

How to flush DNS Cache under MacOSOSX 10.5 – 10.6: Leopard - Snow Leopard

Enter the following command line:

sudo dscacheutil -flushcache

#2

How to do with Mac OS X 10.10.5, all above seems to not work on me :frowning:


#3

dscacheutil -flushcache

It should work :slight_smile: