How to Clear/Flush DNS cache on macOS Mojave?


Wanna clear DNS cache on your macOS Mojave…? If yes, then am pretty sure that this article will be useful for you. Well, some of you might be a network administrator, web developer or a system administrator of Mac. For some reasons, you have to clear DNS cache on Mac right..? Here, I gonna share some easy steps so that you can delete the local DNS cache so quickly. Let’s check out…!
dns-terminal

Use Terminal

  1. Using Spotlight search launch “Terminal”.
  2. Next, execute the following command;

“sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder”.

  1. Click “Enter”
  2. Wait until you get a “DNS cache has been cleared” message.
  3. Finally, exit Terminal.

See also: What DNS am I using? Mac, Windows, Android, iOS
In case if the above command doesn’t work, try the below two alternative commands;

  • “sudo killall -HUP mDNSResponder; say DNS cache has been flushed”.
  • “Sudo killall -HUP mDNSResponder, sleep 2, echo macOS DNS Cache Reset | say”.

Note: After proceeding the above steps, close all the running applications which are connected to the internet and do a refresh.
Hope that now you feel easy to clean up DNS cache on your macOS Mojave. Is it so…? If yes, then kindly share your experience with me through your comments below.

10:16 am

Leave a Reply