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

Similar questions

2 replies

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

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.

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.