[lug] Hostname problem
koolman at h2net.net
Thu Nov 16 09:12:15 MST 2000
Actually after talking with my RedHat instructor this is what I found (man
this guy is a GURU)
The /etc/HOSTNAME file should be left localhost.localdomain because when
using DCHP you can get your host name assigned also and
the DCHP info recevied from the server will overwrite this info...
You don't need to add your hostname to your /etc/hosts file at all
If you want to get your hostname set properly then you do ONLY need to set
it in /etc/sysconfig/network like someone allready said and
this is the offical word from RedHat.
----- Original Message -----
From: "D. Stimits" <stimits at idcomm.com>
To: <lug at lug.boulder.co.us>
Sent: Wednesday, November 15, 2000 8:36 AM
Subject: Re: [lug] Hostname problem
> Calvin Dodge wrote:
> > KoolMan wrote:
> > >
> > > I belelive that your /etc/HOSTNAME and /etc/hosts files both need to
> > > refrence to "oldschool" not just /etc/HOSTNAME actually I'm quite
> > > this..
> > >
> > > And Dan your /etc/HOSTNAME file just contains the hostname not the IP
> > > address associated with the host name that is the job of /etc/hosts
> At one point I had replied, but this wasn't my post originally. But FYI,
> it would make sense that /etc/HOSTNAME and /etc/hosts should be correct
> before the machine both knows its own name, and knows its own ip. If
> either failed the log would fail.
> > AND - as I think Sean has mentioned - if you're running Red Hat (and
> > other distros), /etc/sysconfig/network needs to include the line
> > (the computer I'm using has 'HOSTNAME="c575204-a.whtrdg1.co.home.com"').
> > In fact, I _think_ the /etc/sysconfig/network is the preferred
> > /etc/HOSTNAME is there only for compatibility with older programs.
> > Calvin
> > _______________________________________________
> > Web Page: http://lug.boulder.co.us
> > Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Web Page: http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
More information about the LUG