[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: hostname



> Tom Allison <tallison@tacocat.net> [2004-06-06 15:36]:
>
> How do I set the hostname correctly?
>
> I tried using the hostname command, but it never sticks around.
>
> After a restart, it's the old hostname.
>

have you read 'man hostname':

       The  host  name  is  usually set once at system startup in
       /etc/rc.d/rc.inet1 or /etc/init.d/boot (normally by  read­
       ing  the  contents of a file which contains the host name,
       e.g.  /etc/hostname).

Hence, to configure the hostname:
    vim /etc/hostname

HTH

wbr,
Lukas
-- 
Lukas Ruf           | Wanna know anything about raw |
<http://www.lpr.ch> | IP? -> <http://www.rawip.org> |
eMail Style Guide: <http://www.rawip.org/style.html>|



Reply to: