How to Clear the Local DNS Cache in Mac OS?

nilan avtar
Nilanchala Panigrahy 馃尡

You can flush your local DNS cache in Mac OS (up to El Capitan) from your Terminal by usinng followign steps

Go to Applications -> Utilities -> Terminal

Type the following command and press Enter:

dscacheutil -flushcache

After that type the second command and press Enter:

sudo killall -HUP mDNSResponder

Sharing is caring!

Did you like what Nilanchala Panigrahy 馃尡 wrote? Thank them for their work by sharing it on social media.

nilan avtar

Nilanchala Panigrahy 馃尡

I'm a blogger, educator and a full stack developer. Mainly focused on Java, Spring and Micro-service architecture. I love to learn, code, make and break things.

Related articles