I have read that you can change all of the three "computer names" associated with a Mac using the scutil
utility.
The three names in question are ComputerName
(the "friendly" name), LocalHostName
(used only by Bonjour) and HostName
(which is subsequently returned by /bin/hostname
).
I understand that there are very few side effects from setting the first two. Obviously if Bonjour clients are out there looking for the old LocalHostName
then changing it will be a drag from their perspective, but otherwise this seems pretty side effect free.
I am no networking guru so the idea of changing what is reported by /bin/hostname
is a bit spooky to me. Should I be concerned?
For more background, what is reported by /bin/hostname
changes, it seems, currently, with the weather.
Suppose, for example, my ComputerName
is Chuggid
(don't ask). Suppose my LocalHostName
is also Chuggid
.
I've found that when I connect to some wifi hotspots, hostname
returns chuggid.linksys
. When I am connected to my workplace's VPN, hostname
returns things like xyz-abc.vpnpool.yoyodyne.com
.
So my worry stems from the fact that I'm concerned that since I didn't come up with either of these names, when I arbitrarily decide to set my HostName
to chuggid
that this will cause all sorts of problems.
Is it "safe" to change all three Mac "computer names" to whatever I want?