Add Bonjour commands

This commit is contained in:
Marcel Bischoff 2015-09-23 22:11:23 +02:00
parent a280ebe8ee
commit 563964363a

View File

@ -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