How to disable Bonjour service advertising in Yosemite

Hi there,


I'm trying to disable the Bonjour service advertising in Yosemite / Mac OS X 10.10.


Unfortunately the instructions in OS X: How to disable Bonjour service advertising without disabling DNS no longer apply, since Yosemite no longer has /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist


I did some digging around and there's someone who made a script to disable it in various Mac OS versions, including supposedly Yosemite: https://github.com/MacMiniVault/Mac-Scripts/blob/master/disablebonjour/disablebo njour-README.md


I had a look at the script to find out what it does and manually inserted "--no-multicast" as string under Program Arguments in /System/Library/LaunchDaemons/com.apple.discoveryd.plist


Doing so, will mess up the wi-fi. Networks only show when wi-fi is off, and turning it on makes it seem like it's off and I'm never able to connect until I undo the changes described above.


Wondering if:

1) The result from changes above is expected or is it a bug?
2) If Apple can update OS X: How to disable Bonjour service advertising without disabling DNS to include instructions for Yosemite.

3) Did anyone here manage to disable Bonjour service advertising in Yosemite without introducing any new issues?

Thanks!

Posted on Oct 22, 2014 1:39 AM

Reply
3 replies

Sep 26, 2015 7:52 AM in response to chocobanana

« Twisted » way to disable Bonjour advertising :

It seems that Apple is going back and forth with « mDNSResponder » and « discoveryutil » as they explain in the following KB how to reset DNS cache :

Reset the DNS cache in OS X - Apple Support


So now with the latest « in production » OS X Yosemite 10.10.5 we’re back to writing or deleting the « -NoMulticastAdvertisements » key in the « ProgramArguments » array of « /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist ». As explained on http://krypted.com/mac-security/disabling-bonjour/

To avoid rebooting consider first unloading and then loading back the mDNSResponder plist using « sudo launchctl (un)load -w ».

This should apply to OS X 10.7.z, 10.8.z, 10.9.z, 10.10.4, 10.10.5 (if someone could try with ElCapitan betas it would be great to let us know).

« Easy » way to disable Bonjour advertising :

Anyhow for most people I believe while surfing on public hotspost they are better of simply enabling the genuine OS X Firewall (Systeme Preferences… Security & Privacy) and toggle on the option «Block all incoming connections» which should disable all sharing services thus advertising your Mac to all thoses who are connected to the public network… https://help.apple.com/machelp/mac/10.10/index.html?localePath=en.lproj#/mh17133

Just a pity that « Network locations » isn’t genuinely binded with FireWall rules in order to switch from one another easily…

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 to disable Bonjour service advertising in Yosemite

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