Welcome to Geek Times!
spacer
Mac OS X: Setting the Hostname
Find on this site:


home
search
archive
about

.
Apple doesn't follow the canonical UNIX conventions for setting the host computer name. Instead of an entry in /etc/hosts, /etc/hostconfig is used.

Edit the line which says

HOSTNAME=-AUTOMATIC-

to look like

HOSTNAME=rosencrantz.geektimes.com

Restarting the daemon, or rebooting, will result in the hostname command working as expected.

Of course domainname is still broken...

This page is copyrighted 1993-2006 by Michael 'Mickey' Sattler, some rights reserved via the Creative Commons License. Questions and comments? Send email to the Geek Times Webmaster. (Domain and web content hosting at 1and1.)
email