On Thursday 27 February 2003 11:04 pm, Greg Meyer wrote:
> On Thursday 27 February 2003 10:51 pm, Greg Meyer wrote:
> > I am having trouble with the hostname on my cooker box and can't figure
> > out what is going on.  I am updated through 20030227's Cooker.
> >
> > I am on a network with a dhcp server and have set a hostname in
> > drakconnect. When I reboot, the machine is assigned an ip address by the
> > dhcp server (192.168.0.6) and the hostname is set to dhcppc5.
> >
> > I know that the dhcp server is providing the hostname, but why doesn't
> > the OS use the hostname I entered in drakconnect?
> >
> > The contents of my /etc/sysconfig/networking file:
> >
> > NETWORKING=yes
> > GATEWAY=192.168.0.1
> >
> > If I add a hostname and domain name to /etc/sysconfig/networking, it
> > still boots up using dhcppc5 as the hostname.  What is going on here?
>
> I'll confess that i forgot to check the contents of
> /etc/sysconfig/network-scripts/ifcfg-eth0 after I reran draconnect, and the
> hostname is set in there properly.  If that is the case, why would that not
> override the dhcp server assigned hostname?

Okay, I got the hostname to change by manually adding a hostname to 
/etc/sysconfig/network.  This did not work before I reran drakconnect post 
install.  So it seems bith files must have the hostname set in order to 
override the dhcp assigned name.

So, to summarize, the installer did nothing on network configuration to set 
hostname and just accepted the default provided by the dhcp server, despite 
the fact that I had set hostname during install.  I had to run drakconnect 
post install to set the dhcp-hostname name in  
/etc/sysconfig/network-scripts/ifcfg-eth0 and then make a manual entry in 
/etc/sysconfig/hostname to get the hostname to be applied.

Can this be possible.  Do I need to try this again to make sure this is what 
happened.  Does the fact that I had to do this manually indicate a bug in 
drakconnect, or did I do something wrong?  And even though I set the 
hostname/domain during install, why didn't either 
/etc/sysconfig/network-scripts/ifcfg-eth0 or /etc/sysconfig/hostname reflect 
what I entered when examined immediately following install.
-- 
Greg

Reply via email to