How does one permanently change hostname ?
balay at fastmail.fm
Sun Nov 21 18:03:15 UTC 2004
On Sun, 21 Nov 2004, Alexander Dalloz wrote:
> Am So, den 21.11.2004 schrieb Satish Balay um 17:18:
> > > How and where is hostname set and how does one alter it ?
> > - add the name to /etc/sysconfig/network
> > HOSTNAME=foobar
> > - add the ip-addresss map to /etc/hosts
> > 127.0.0.1 foobar
> Attention! This advice can be understood misleading and wrongly
> following can cause severe network problems. As the comment in the
> /etc/hosts file itself very clearly says:
> # Do not remove the following line, or various programs
> # that require network functionality will fail.
> 127.0.0.1 localhost.localdomain localhost
I guess i should have been more clear - I meant 'add the extra
line'. The following is valid:
127.0.0.1 localhost.localdomain localhost
More information about the users