How to flush DNS cache in Mac OS Mojave in less than 30 seconds

flush dns cache mac os mojave
January 17, 2019 at 4:45 pm

If you work on domain names and server configurations like me, you might need to flush your DNS cache to access the newly updated DNS records for a website. Flushing your DNS cache in Mac OS is super easy to do if you know the right command and you can do it in a few seconds! Watch my video to see how it’s done and learn how to be 1337 by using the command line interface.

Flush your DNS cache in Mac OS Mojave in three easy steps:

  1. Open up your Terminal command line interface application. Mine looks different because I skinned it to be 1337.

  2. sudo killall -hup mdnsresponderType or copy/paste the following command: sudo killall -HUP mDNSResponder. I saved this command in a note file, but I’ve memorized it so I don’t need to copy and paste it anymore.

  3. Type in your administrator password and press enter. The command will process and your DNS cache should be flushed. You might want to restart your computer just to get a fresh slate if the DNS hasn’t updated on your machine yet.

This is how I flush my DNS cache and it helps speed up the propagation process for me when I’m updating DNS records.

Leave a Reply

Your email address will not be published. Required fields are marked *