How To Clear DNS Cache In Mac OS

Due to some unavoidable conditions clearing DNS cache is important for some users of Mac OS. Clearing the DNS cache will help them to resolve the name server properly or notice your Mac computer about the DNS address change. So today we will guide you how to clear the DNS cache in Mac operating system.

clean mac

Why you need to clear the DNS cache in MAC OS X

As you are aware, Mac OS X keeps a local cache of resolved DNS queries for a time defined by the DNS server, but sometimes it may be necessary to reset the cache immediately and re-query a DNS server.
Delete DNS Cache the easy way

Clearing the DNS cache in Mac OS is simple, only you have to execute some commands in the terminal application depending on the Mac OS version you are using.

Clear DNS cache in Mac 10.10 Yosemite

To reset all the Cache in Mac OS X Yosemite just execute below command in terminal application. It will delete both multi cast DNS and unicast DNS.

sudo discoveryutil mdnsflushcache;sudo discoveryutil udnsflushcaches;say flushed.

Clear DNS cache in Mountain Lion

If you are on Mac OS Mountain Lion use the command to clear or Delete the DNS cache.

sudo killall -HUP mDNSResponder sudo killall -HUP mDNSResponder

Clear DNS cache in Mac OS X 10.6

If you are very older version of mac such as Mac 10.6 then use below command in terminal application to delete DNS Cache.

sudo dscacheutil -flushcache

Flushed the DNS and want to check what exactly changed? No problem, just use the terminal application again and execute the command “dig” to check the server status. For example I want to test my domain then I have to type in terminal command



Add a Comment

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.