I know you can set the hostname in Preferences > Sharing > Computer Name, but it gets overwritten if you're on a foreign DHCP network that has hostnames assign. To prevent that from happening:
sudo scutil --set HostName {custom_hostname}
Found on this superuser.com thread.
No comments:
Post a Comment