Mac /

NetworkComputerNaming

Short answer: use this pattern as root

sh-3.2# scutil --set ComputerName watcher
sh-3.2# scutil --set HostName watcher
sh-3.2# scutil --set LocalHostName watcher