OSX Tips – Turn off / Disable Bonjour from the Command Line



If you are trying to optimise your OSX system and want to shut down services that you are not using, Bonjour might be one to target.

You can disable Bonjour with the following commands:

sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.mDNSResponderHelper.plist

You can then re-enable it with the following:

sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.mDNSResponderHelper.plist

You could test to see if the services are running using ps:

ps aux | grep mDNS

Or you could use launchctl:

sudo launchctl list | grep mDNS
Share Button

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>