Another method of changing your hostname

Sep 09, '01 11:23:08PM

Contributed by: Anonymous

We all know you can change the host name in OS X through /etc/hostconfig, but that can have problems, such as Apache not working right.

In the Terminal type:

% sudo open -a /Applications/TextEdit.app /usr/share/init/tcsh/rc
In TextEdit look for a line:
set host = `hostname`
change `hostname` to anything you like:
set host = "Big Papa"
There you go, new host name without the hassle of hostconfig.

[Editor: I have not tested this myself, but the rc file does contain the hostname reference. I don't know the implications of changing it here versus editing hostconfig or using NetInfo Manager...anyone have any thoughts?]

Comments (10)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20010909232308119