There are actually three names you need to set:
hostname – the DNS hostname.
LocalHostName – the Bonjour name
ComputerName – the name displayed at the loginwindow, and via certain network browsing protocols.
The LocalHostName and ComputerName can be set in the Sharing preferences pane.
hostname is set via DHCP, or via command-line.
You can also use scutil:
scutil –set HostName
scutil –set LocalHostName
scutil –set ComputerName
Unless you have something running at startup that resets these, changing them should survive a reboot.
Comments are closed