On 03/24/2012 09:08 AM, Ken Moffat wrote: > On Sat, Mar 24, 2012 at 12:33:05AM -0700, James Richard Tyrer wrote: >> Small things can be very annoying department. >> >> I find that when I start : "dhclient" with the: "network" init.d script >> that the host-name of my computer is changed to: "dhcppc<n>". I have >> looked through the documentation and can not seem to find out how to >> prevent this. >> >> It would be nice if this page of the book addressed this problem. > > I haven't seen this problem. I use dhclient with the following in > /etc/sysconfig/ifconfig.eth0: > > ONBOOT=yes > IFACE=eth0 > SERVICE="dhclient" > DHCP_START="-1 eth0" > DHCP_STOP="-r" > > and my hostname is what I set in /etc/sysconfig/network. > Yes, I have:
HOSTNAME=`cat /etc/hostname` in /etc/sysconfig/network. But, dhclient isn't using that. Is it possible that something like: hostname $HOSTNAME is being executed somewhere on your system? -- James Tyrer Linux (mostly) From Scratch -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page