LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Hostname (https://www.linuxquestions.org/questions/linux-software-2/hostname-62397/)

Hamma 05-28-2003 10:15 PM

Hostname
 
Where is the system's hostname set during startup?

There is a control panel I use which is particular about the hostname of the box, but im not sure where to tweak it during startup. I know how to manually do it (which I have to do)

Thanks :D

t3stm0nk3y 05-29-2003 03:35 AM

vi /etc/hosts

t3stm0nk3y 05-29-2003 03:39 AM

Also
 
See this post http://www.linuxquestions.org/questions/history/36249

Regards.

jharris 05-29-2003 04:26 AM

Note that changing the entry in /etc/hosts won't change the hostname, it'll only change what the ip address reverse lookups to. The hostname is typically set using the 'hostname' command somehwere at boot time. Exactly where this is set will depend on which distro you are using.

cheers

Jamie...

Hamma 05-29-2003 07:24 AM

Any idea where it is set in Redhat 7?

t3stm0nk3y 05-29-2003 07:43 AM

redhat
 
/etc/sysconfig/hostname ?

Hamma 05-29-2003 08:32 AM

Yep, I found it. /etc/sysconfig/network

thanks ;D


All times are GMT -5. The time now is 05:54 PM.