I did a grep of /etc/* and found the following:

hades root # grep hades /etc/*
/etc/csh.env:setenv HOSTNAME 'hades.flapper.net'
/etc/hostname:hades.flapper.net
/etc/profile.env:export HOSTNAME='hades.flapper.net'

I believe the main (and reasonably standard place to set it) is /etc/hostname, 
which AFAIK only holds this value. The others are setting an environment 
variable which is set on login (I think they are for csh and bash)

There maybe a command that sets these all, I don't know. In the past I have 
just set /etc/hostname manually (I am newish to gentoo).

P.S.) Does anyone want to spread any light in why profile.env and csh.env 
don't retrieve the hostname from /etc/hostname? That would make sense to me!

Martyn

On Sunday 02 February 2003 9:50 pm, raptor wrote:
> i do,
>
> hostname blah
>
> but after restart the host name is lost... how to preserve it after
> restart...
>
> raptor
> ps. in fact where is it stored..
>
>
> --
> [EMAIL PROTECTED] mailing list


--
[EMAIL PROTECTED] mailing list

Reply via email to