[TriLUG] down, but not^h^h^h defeated
Tanner Lovelace
lovelace at wayfarer.org
Fri Aug 13 11:27:45 EDT 2004
Greg Brown said the following on 8/13/04 11:09 AM:
> For no reason other than I didn't set the thing up in the first place
> and the I'm now just having to deal with it.
>
> Can someone PLEASE explain to me WHY CentOS WILL NOT allow you to set a
> hostname then obtain the domain information from DNS?
>
> Here's now it works (and it does work, I've tested it) under RH 7.1:
>
> 1. install
> 2. set hostname in /etc/sysconfig/network (do not put domain info, just
> hostname)
> 3. plug machine into network
> 4. reboot
> 5. rejoice, vtcmail.gc.lucent.com is resolvable by other machines
>
> Do the same thing with CentOS.. doesn't work. Set the hostname after
> reading the hostname man page.. doesn't work.
>
> NOTHING works!
>
> BAH!!!
>
> Greg
Greg,
Setting the hostname should do nothing to the DNS setup. They are
two completely different things. The DNS setup should be done on
the DNS server. If that matches vtcmail.gc.lucent.com, then you
should look in /etc/named.conf for where the dns files are located
(it will generally be something like /var/named/). Setting the hostname
on the machine itself should only affect stuff on the local machine.
The hostname doesn't even have to match the DNS name. I don't know why
you're seeing what you're seeing on RH 7.1, but there
must be something else in play there. So, look at the dns settings
if you want the hostname to be resolved by other machines.
Cheers,
Tanner
More information about the TriLUG
mailing list