How to disable mDNS correctly?
Solution 1:
Firstly, you'll need to disable the "System Integration Protection" by following the instructions in How to Disable System Integrity Protection.
Then unload the mDNSResponder service:
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