set your host name in /etc/sysconfig/network

Add a line to the file:

HOSTNAME="joe.mymachine.com"

you d' man!
/c

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Van Den Abeele Kristof
Sent: Thursday, June 27, 2002 2:23 AM
To: [EMAIL PROTECTED]
Subject: How to set hostname ?


Hello people ,

I have 2 pc's.

One 'weak' AMD 350Mhz ( Redhat 7.2 ) - One 'strong' AMD 1Ghz ( Redhat 7.3 )

The 7.2 was for testing and my first experiences with Linux.
I could install very easily and configure this machine.

So I decided to install 7.3 on my 'personal' machine. No problems here with
installation.

But when I opened the 'configuration window' ( forgot exact name , where you
can find services , samba , printer , ... ) the icon for the network
configuration wasn't there. Although it was available in my 7.2 box.

I wanted to set the hostname , so I used following command ( root ) :
#hostname vectra
It looked ok (prompt changed also ) ,  but every time I did a reboot ,
hostname was set again to localhost.

The files the man pages ( hostname ) refered to ( etc/host , ... ) even
didn't exist.

I already solved the problem by installing linuxconf. ( witch is a good util
for newbies like me )

So far the amazing story :)

-----------------------------------
But I'm still curious : In which file is the hostname of a pc set ? Is this
always the same file ? How come with command hostname the name was gone
after a reboot ? ....
------------------------------------

Thanx for the help ,

Kristof


Visit our website! http://www.nbb.be

"DISCLAIMER: The content of this e-mail message should not be constructed as
binding for the National Bank of Belgium (NBB) unless otherwise and
previously stated.
Besides, the opinions expressed in this message are solely those of the
author and do not necessarily represent those of the NBB, which is
particularly the case if the content of the present message, or part of it,
is of a private nature or does not come whithin the professional scope of
the author."









_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to