On Wed, 2002-07-03 at 15:43, Chris Harris CW wrote: > Can somebody point in the right direction to configure the hostname for > my laptop workstation installation. > > At the moment the email headers from that machine show something like > "received: from localhost.localdomain" I would like to change this to > something more meaningful. From what I can read on the net I need to > create a file called /etc/hostname and put my chosen name in this. and > then edit /etc/hosts to include my new name as localhost. > > Am I on the right path? > Is this correct for RH7.3? > Will it cause any problems? > Is there a better way to do it? > > Any suggestions welcome > > Cheers > Chris Harris > Stanley > Falkland Islands
My redhat 7.3 workstation /etc/hosts file looks like this. The 192.168.1.2 is the workstation and 192.168.1.1 is the server. # Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 localhost localhost.localdomain 192.168.1.2 enigma enigma.mydomain.com 192.168.1.1 neostorm neostorm.mydomain.com You may also want to set the hostname, man hostname -> hostname --help Why the orginal hosts file is backwards on redhat, I don't know. You can screw using the network tools, so just edit the hosts file instead then run the hostname to set it and reboot to make sure it detects the proper name+domain. I do not know if this is the correct way but it works for me. Now I have a question about the hosts file, why does redhat do the hosts file backwards compared to everyone else? jay _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list