From 7f6224dc2b72afbed5b9c967e1c076543df4bc91 Mon Sep 17 00:00:00 2001 From: Marcel Bischoff Date: Sat, 17 Oct 2015 18:57:44 +0200 Subject: [PATCH] Change Hostname section to include SMB/NetBIOS name --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index bd11204..c83f27f 100644 --- a/README.md +++ b/README.md @@ -470,12 +470,13 @@ sudo dscachutil -flushcache && sudo killall -HUP mDNSResponder ### 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. ```bash sudo scutil --set ComputerName "newhostname" -sudo scutil --set LocalHostName "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