A tip for editing the hostname in hostconfig

Feb 17, '03 08:05:00AM

Contributed by: Anonymous

Changing your hostname /etc/hostconfig gives mixed results, sometimes it works, sometimes it doesn't, and there was no apparent explanation. Here's one basic but helpful thing to remember ... when you're monkeying around in hostconfig, you need to remove the hyphens that encompass the variable, for instance...

 HOSTCONFIG=-NEWHOSTNAME-   
will not work; the system defaults to "localhost." Using the following should allow you to use the new hostname without the localhost reoccuring:
 HOSTCONFIG=NEWHOSTNAME 
On my system, this particular scenario worked, mileage may vary.

Comments (4)


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