Change Hostname section to include SMB/NetBIOS name

This commit is contained in:
Marcel Bischoff 2015-10-17 18:57:44 +02:00
parent db23216ec9
commit 7f6224dc2b

View File

@ -470,12 +470,13 @@ sudo dscachutil -flushcache && sudo killall -HUP mDNSResponder
### Hostname ### Hostname
#### Set Hostname #### Set Computer Name/Host Name
You need to run all of the commands since the hostname needs to be changed in three places. You need to run all of the commands since the hostname needs to be changed in three places.
```bash ```bash
sudo scutil --set ComputerName "newhostname" sudo scutil --set ComputerName "newhostname"
sudo scutil --set LocalHostName "newhostname"
sudo scutil --set HostName "newhostname" sudo scutil --set HostName "newhostname"
sudo scutil --set LocalHostName "newhostname"
sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server NetBIOSName -string "newhostname"
``` ```
### Networking Tools ### Networking Tools