You can set your $HOSTNAME in /etc/sysconfig/network to whatever you want and then set a different name in /etc/sysconfig/network-scripts/ifcfg-eth0. You get to have your hostname of choice and your internet works.
All right. I put DHCP_HOSTNAME=x1-6-00-03-xx-xx-xx-xx in /etc/sysconfig/network-scripts/ifcfg-eth0, *Attention James* rebooted, and the prompt is still @x1-6-00-03-xx-xx-xx-xx
To review:
Configured cable account with drakconnect, specifying localhost as hostname, which results in hostname = localhost being configured in /etc/tmdns.conf
Changed from NEEDHOSTNAME=yes to NEEDHOSTNAME=no in /etc/sysconfig/network-scripts/ifcfg-eth0
Added HOSTNAME=localhost to /etc/sysconfig/network
Added DHCP_HOSTNAME=x1-6-00-03-xx-xx-xx-xx in /etc/sysconfig/network-scripts/ifcfg-eth0
service network restart
reboot
prompt is still @x1-6-00-03-xx-xx-xx-xx
do hostname localhost
restart kde and prompt/$HOSTNAME are localhost
open up port 67 on the firewall so dhclient can get through and dhclient -r to release the dhcp lease power-cycle modem, service network restart, reboot --> prompt is @x1-6-00-03-xx-xx-xx-xx
From man dhclient,
*In order to keep track of leases across system reboots and server
restarts, dhclient keeps a list of leases it has been assigned
in the
dhclient.leases(5) file. On startup, after reading the
dhclient.conf
file, dhclient reads the dhclient.leases file to refresh its
memory
about what leases it has been assigned.*
and there is a line in dhclient.leases:
option host-name "x1-6-00-03-xx-xx-xx-xx"Something is changing the $HOSTNAME variable on boot. I can change it back for the session w/o affecting internet but it would be nice not to have to.
I've thought to try putting hostname localhost in rc.local but that seems an ugly hack.
Thanks.
On Sat, 2003-08-16 at 14:45, Rolf Pedersen wrote:
James T. Nelson III wrote:
Try adding a DHCP_HOSTNAME= entry to the /etc/sysconfig/network-scripts/ifcfg-eth0 file with the hostname Comcast is providing you. The ifup script will send this when it does the DHCP negotiation instead of the hostname you've selected for your machine.
JN
I am not following this suggestion. My problem is that dhcp or some other script is changing $HOSTNAME to the name Comcast, evidently, is using. Internet is functional; it's just disturbing to see the prompt changed to [EMAIL PROTECTED] and not being able to change it. I was able to change $HOSTNAME with the hostname command, but it does not persist across a reboot. Can you clarify for me? Thanks.
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
