LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Hostname change (https://www.linuxquestions.org/questions/linux-newbie-8/hostname-change-111044/)

AttOMIXT 11-01-2003 03:47 AM

Hostname change
 
Where do I change my overall hostname display in Redhat 9? It says localhost.localdomain still :(

megaspaz 11-01-2003 03:57 AM

what i was told by redhat using version 7.3 was to add the name you want in /etc/hosts and in /etc/sysconfig/network

/etc/hosts:
Code:

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1        localhost.localdomain        localhost        Tron

/etc/sysconfig/network
Code:

NETWORKING=yes
HOSTNAME=Tron

my computer name is Tron. ;)

edit: oh yeah, this change is not immediate until you reboot. you could run the hostname command (as root i imagine) setting setting this though to get the hostname in your current session.

something like i think:

Code:

hostname -F /etc/sysconfig/network
but i'm not sure. do a 'man hostname'

AttOMIXT 11-01-2003 11:10 PM

THx I got it.


All times are GMT -5. The time now is 01:20 PM.