Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How do you disable Bonjour advertising?

Prior to updating to Catalina, I had successfully disabled Bonjour advertising on my server by using the following command in the terminal:


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


However this no longer works in Catalina. I run the command, using sudo, but the computer continues to advertise itself on Bonjour. How do I disable this in Catalina?

Posted on Jan 2, 2020 2:24 PM

Reply
Question marked as Top-ranking reply

Posted on Jan 6, 2020 4:25 PM

Before moving any service plist file, it is necessity to discharge the service before changing of anything.


To unload the mDNSResponder service issue:

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


Insert into "NoMulticastAdvertisements" for configuration:

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


Reload service without Bonjour Advertisement:

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


Check Text ( C-75751r1_chk )


How to check the multi tasker Bonjour advertising has been disabled, you have to run the following command;

/usr/bin/sudo /usr/bin/defaults read /Library/Preferences/com.apple.mDNSResponder | /usr/bin/grep NoMulticastAdvertisements

If you finds any error in the returned or nothing would be returned, moreover “NoMulticastAdvertisements” is not set on the ‘1’, that’s the finding.


Fix Text (F-82705r1_fix)


How to configure Bonjour Disable the multicast advertising, you have to run the following command;

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

Restart your system so that the update will take their action.


Jass Smith AppDeveloper

Similar questions

2 replies
Question marked as Top-ranking reply

Jan 6, 2020 4:25 PM in response to anothersmurf

Before moving any service plist file, it is necessity to discharge the service before changing of anything.


To unload the mDNSResponder service issue:

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


Insert into "NoMulticastAdvertisements" for configuration:

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


Reload service without Bonjour Advertisement:

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


Check Text ( C-75751r1_chk )


How to check the multi tasker Bonjour advertising has been disabled, you have to run the following command;

/usr/bin/sudo /usr/bin/defaults read /Library/Preferences/com.apple.mDNSResponder | /usr/bin/grep NoMulticastAdvertisements

If you finds any error in the returned or nothing would be returned, moreover “NoMulticastAdvertisements” is not set on the ‘1’, that’s the finding.


Fix Text (F-82705r1_fix)


How to configure Bonjour Disable the multicast advertising, you have to run the following command;

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

Restart your system so that the update will take their action.


Jass Smith AppDeveloper

How do you disable Bonjour advertising?

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