On Thu, 2003-07-31 at 00:29, Voytek Eymont wrote:
> ** Reply to note from James Gregory <[EMAIL PROTECTED]> 30 Jul 2003 13:41:48 +1000
>
>
> > find /etc -type f -exec grep -ln `hostname` {} \; 2> /dev/null
>
> James,
>
> thanks for a handy line !
>
> hmmm, is that correct to have 127.0.0.1 in this, rather than the proper IP
> address ?
>
> [EMAIL PROTECTED] root]# cat /etc/sysconfig/networking/profiles/default/hosts
whoa, craziness. So, my best guess is that the file you've found is the
equivalent of /etc/hosts in a different network "profile" (which I don't
know anything about, but probably should). It does raise an interesting
point though, you probably want to have both names listed against
127.0.0.1 if you're changing names; it prevents stuff breaking if you
forget to update a name somewhere (smtp config for example).
So yeah, you'll probably need to update a few files, for each profile
from the looks of things. For reference, this is what I have in the file
I'm talking about:
HOSTNAME=rachmaninoff
NETWORKING=yes
HTH,
James.
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug