On 14 Aug 2003 08:28:28 -0700, N.K. <(E-Mail Removed)> wrote:
> Hi,
> I've been asking questions about Samba install before and this
> question sort of relates to that but I thought I put it in a different
> thread.
> Trying to get Samba installed I was advised to change my hostname
> because my network was saying that localhost already exists.
> Anyway, on my Linux box I went into system->Network
> Configuration->Hosts.
> I think I should have added a host but instead I changed the line:
>
> 127.0.0.1 localhost.localdomain localhost
>
> TO:
>
> mylinuxIp newHostName localhost
>
> I don't know if what I've done was the right thing.
No, it is best NOT tamper with or remove the 127.0.0.1 line. The name
'localhost' always needs to point at 127.0.0.1.
It should be (for RH/Mdk):
127.0.0.1 localhost.localdomain localhost
yourlinuxip yourhostname.localdomain yourhostname
You also need to change whichever network script sets your hostname
(likely something in /etc/sysconfig). Note that yourlinuxip should be one
that is always up (like a nic). If yourlinuxip is NOT always up (like ppp
or pppoe) then you could assign it to an extra loopback IP like 127.0.0.2.
--
David Efflandt - All spam ignored
http://www.de-srv.com/
http://www.autox.chicago.il.us/ http://www.berniesfloral.net/
http://cgi-help.virtualave.net/ http://hammer.prohosting.com/~cgi-wiz/