macOS

Disable Multicast Advertisement (Bonjour)

Bonjour is Apple’s implementation of Multicast DNS.

Despite the fact that mDNS has been around since 2000 many do not use it or have any need for it. Unfortunetly you can’t just disable the mDNSResponder LaunchDaemon or the DNS will be broken.

Instead, to disable Bonjour we would add the -NoMulticastAdvertisements option into the ProgramArguments array in the com.apple.mDNSResponder.plist file.

Disable

This can be done manually, or it can be automated with the following command:

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

(re)Enable

To undo this (enable DNS Multicasting), run this:

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

Using a PList Editor

mDNSResponder.plist