Kenyon Ralph

Mac OS X hostname

To prevent my hostname from being set by DHCP, I have this:

kenyon@devildog ~ % grep -i hostname /etc/hostconfig

In System Preferences, Sharing, Computer Name should be set to the FQDN. The .local name will just be the first part.

hostname should return the FQDN (, and hostname -s should return just the first part (devildog).


Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License. Revision History.