Enable Bonjour

sgiesbrecht
Contributor III

How do I enable Bonjour

I have a script to disable it,

#! /bin/bash

defaults write /Library/Preferences/com.apple.mDNSResponder.plist NoMulticastAdvertisements -bool true

do I just reverse it or delete the .plist file

 

1 ACCEPTED SOLUTION

HenryOzsoy
New Contributor III

To turn it off execute this command:

defaults write /System/Library/LaunchDaemons/com.apple.mDNSResponder ProgramArguments -array-add "-NoMulticastAdvertisements"

To turn it on again:

defaults write /System/Library/LaunchDaemons/com.apple.mDNSResponder ProgramArguments -array "/usr/sbin/mDNSResponder" "-launchd"

View solution in original post

2 REPLIES 2

HenryOzsoy
New Contributor III

To turn it off execute this command:

defaults write /System/Library/LaunchDaemons/com.apple.mDNSResponder ProgramArguments -array-add "-NoMulticastAdvertisements"

To turn it on again:

defaults write /System/Library/LaunchDaemons/com.apple.mDNSResponder ProgramArguments -array "/usr/sbin/mDNSResponder" "-launchd"

donmontalvo
Esteemed Contributor II

Not possible with SIP enabled.

--
https://donmontalvo.com