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

Re: hostname



On Sun, Jun 06, 2004 at 03:41:21PM +0200, Lukas Ruf wrote:
> > 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

...and don't forget to do a recursive grep on /etc to find all the
other files with the hostname in (eg. /etc/exim/exim.conf).

-- 
Pigeon

Be kind to pigeons
Get my GPG key here: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x21C61F7F

Attachment: pgplsd1UF2UPf.pgp
Description: PGP signature


Reply to: