From 563964363a55b9647ccc49e7ce3828285765aaa1 Mon Sep 17 00:00:00 2001 From: Marcel Bischoff Date: Wed, 23 Sep 2015 22:11:23 +0200 Subject: [PATCH] Add Bonjour commands --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 55b3b88..704f97b 100644 --- a/README.md +++ b/README.md @@ -90,6 +90,12 @@ afconvert input.mp3 ringtone.m4r -f m4af sudo dscachutil -flushcache && sudo killall -HUP mDNSResponder ``` +### Enable/disable Bonjour +```bash +defaults write /System/Library/LaunchDaemons/com.apple.mDNSResponder ProgramArguments -array-add "-NoMulticastAdvertisements" +defaults write /System/Library/LaunchDaemons/com.apple.mDNSResponder ProgramArguments -array "/usr/sbin/mDNSResponder" "-launchd" +``` + ### Renew DHCP lease ```bash sudo ipconfig set en0 DHCP