On 30 Aug 2005 18:06:37 -0700,
(E-Mail Removed) wrote:
> Recently I was required to "register" my laptop (running Fedora 3) with
> my university's computer support office in order to use their internet
> on campus. Somehow in this self-guided on-line process they
> automatically created a new hostname for my computer.
Yes when dhcp is used and you have not disabled hostname your pc gets
a new new name.
What you could do is create a script to update /etc/hosts with your ip
address, and name your pc. That should stop your problem in either
mode. You would do a
man your_dhcp_client_name_here
to see what the script name needs to be created.
I am running mandrivalinux and do not know where things can be set of FC3.
You might put
NEEDHOSTNAME=no (followed by a carriage return)
in /etc/sysconfig/network-scripts/ifcfg-eth0
That stops name changes but a hostname of localhost will not do well.
Do set a name for your host.
$ cat /etc/sysconfig/network
HOSTNAME=fw <=== here is where node name goes
NETWORKING=yes
NETWORKING_IPV6=no
GATEWAYDEV=eth1
GATEWAY=24.1.202.1
$ head /etc/hosts
127.0.0.1 localhost
192.168.2.1 fw.home.invalid fw <==== alias here