On Wed, Mar 20, 2002 at 11:16:14AM +0530, Dr . Sharukh K . R . Pavri . wrote:
> I had to re-install pcqlinux 7.1 and now I don't seem to be able to set the
> hostname. During installation, I had given the hostname as farzaan but it
> still comes up as localhost. 
> 
> /etc/hosts/ has the following line
> 
> 127.0.0.1     farzaan localhost.localdomain localhost
> 
> I even created a file /et/HOSTNAME with the word farzaan but 
> still won't work.
> 
> I can set it with the hostname command but this is wiped out 
> at reboot.
> 
---end quoted text---

This is typically a RH problem. They do not use /etc/HOSTNAME
but /etc/hostname. You need to edit /etc/sysconfig/network as
well. See LOST #201 below.

HTH

Bish 

--
:
####[ Linux One Stanza Tip (LOST) ]###########################

Sub : Sysadmin things (hostname in RedHat)           LOST #201

To change the host name of your RH machine, as  root edit file
/etc/hostname. Secondly, place in file  /etc/sysconfig/network 
'HOSTNAME=hostname_string',  else on  reboot it will revert to 
localhost.localdomain! Its a RH quirk !

####<[EMAIL PROTECTED]>#######################################
:

_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to