Why is killing mDNSResponder the recommended method of clearing your DNS cache in 10.7+?

mDNSResponder is also in control of Bonjour advertisement and unicast DNS resolution. So killing mDNSResponder is a good way to clear your cache in the same way that throwing your computer out a window is a good way to turn it off.


Why not continue to use "sudo dscacheutil -flushcache" like we always have? It still even works in 10.7+.

Posted on Feb 21, 2013 12:48 PM

Reply
Question marked as Top-ranking reply

Posted on Feb 21, 2013 2:21 PM

As Linc indicated, the command recommended by Apple is:


sudo killall -HUP mDNSResponder


This restarts the process; it doesn't kill it. In 10.7 and 10.8 the mDNSResponder daemon caches DNS query results, so even if you flush the other cache, old results can still crop up. Restarting the mDNSResponder daemon clears that cache.


Regards.

2 replies
Question marked as Top-ranking reply

Feb 21, 2013 2:21 PM in response to cweagans

As Linc indicated, the command recommended by Apple is:


sudo killall -HUP mDNSResponder


This restarts the process; it doesn't kill it. In 10.7 and 10.8 the mDNSResponder daemon caches DNS query results, so even if you flush the other cache, old results can still crop up. Restarting the mDNSResponder daemon clears that cache.


Regards.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Why is killing mDNSResponder the recommended method of clearing your DNS cache in 10.7+?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.