Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Flush DNS cache in Lion and Mountain Lion ' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Flush DNS cache in Lion and Mountain Lion
Authored by: agentx on Aug 09, '12 02:05:18AM
Overall as of 10.6 mDNSresponder fully took over Unicast and Multicast DNS Queries on behalf of client processes, and maintains a cache of the replies. It was moved from Directory Services so the hint is correct and running dscacheutil on these systems will do nothing to fix DNS issues. The correct method is to restart mDNS. I have a script that most of my users have to gracefully restart mDNS. Have been using it for years to get round the poor DNS implementation on OS X. My god Apple have butchered it !

#Script to unload and reload mDNS as it is a bit crappy
sudo launchctl unload /System/Library/LaunchDaemons/
echo "mDNS unloaded"
sleep 5
sudo launchctl load /System/Library/LaunchDaemons/
echo "mDNS loaded"
sleep 5
echo "Hopefully you can get on with browsing again"
save as mdns_reload.command and place on desktop for easy cache clearing/restarting on mDNS.

Also if you run this command you will get a very detailed report in /var/logs/system.log of the state of your cache etc.

sudo killall -INFO mDNSResponder
Edited on Aug 09, '12 02:13:38AM by agentx

[ Reply to This | # ]