[TriLUG] An easy one...

Vestal, Roy L. rvestal at rti.org
Fri May 3 09:17:33 EDT 2002


Jason,
 I did just that. I changed the /etc/hosts but not the HOSTNAME line in
/etc/sysconfig/network. Didn't work. DNS lookups went nutz too. I downed the
network service (/sbin/service network stop), edited the files, and
restarted the network service (/sbin/service network start) and !voila! the
network saw the new name. However, I didn't know about the file you
mentioned (guess it's a "duh!" on my part), so I still got the old name with
a "uname -n " until I rebooted.



-----Original Message-----
From: Jason Tower [mailto:jtower at nc.rr.com]
Sent: Friday, May 03, 2002 6:01 PM
To: trilug at trilug.org
Subject: RE: [TriLUG] An easy one...


RH72 also creates the file /etc/HOSTNAME with the FQDN that you may have
entered during the installation process.  the hostname is also in the two
files listed below.  i'm not sure why it needs to be in three seperate
places or what happens if you change it one place but not another...anyone
got a line on that?

jason

> change the HOSTNAME= line in /etc/sysconfig/network and the hostname in
> /etc/hosts
>
>
>
> -----Original Message-----
> From: Chris Knowles [mailto:knowlesc at telocity.com]
> Sent: Thursday, May 02, 2002 2:24 PM
> To: trilug at trilug.org
> Subject: [TriLUG] An easy one...
>
>
> OK, here's a question that has been tickling at the back of my head for
> some
>
> time.
>
> How do you change the hostname of a computer, permanently, from the
> command-line?  I know how to do it from the GUI, but how do you do it
> from  the console?
>
> See, wasn't that horribly easy?  Don't you think less of me now?
>
> CJK
> _______________________________________________
> TriLUG mailing list
>    http://www.trilug.org/mailman/listinfo/trilug
> TriLUG Organizational FAQ:
>    http://www.trilug.org/~lovelace/faq/TriLUG-faq.html
> _______________________________________________
> TriLUG mailing list
>    http://www.trilug.org/mailman/listinfo/trilug
> TriLUG Organizational FAQ:
>    http://www.trilug.org/~lovelace/faq/TriLUG-faq.html



_______________________________________________
TriLUG mailing list
    http://www.trilug.org/mailman/listinfo/trilug
TriLUG Organizational FAQ:
    http://www.trilug.org/~lovelace/faq/TriLUG-faq.html



More information about the TriLUG mailing list