-   Linux - Networking (
-   -   change hostname (

dincer80 07-31-2003 02:04 AM

change hostname
RedHat AS 2.1->
How to change hostname from "localhost" to anything I want?

Zappa 07-31-2003 02:26 AM

Just hit netconfig/netcfg in a console. Follow the network config program and the reboot.


Looking_Lost 07-31-2003 02:28 AM

If it's the same as the normal "desktop" RH's, if you're Gnome or Kde you can change it from the menu item "network" or in a shell as root type "neat" or at the shell type "hostname <mynewhostname>" (although this method doesn't seem to stick for me) or edit the file "/etc/sysconfig/network" and change it in their.

Don't remove any references to localhost know in the "/etc/hosts" though unless ya want grief.

Robert0380 07-31-2003 02:30 AM

To set the hostname in RedHat,
you must edit the line HOSTNAME= in /etc/sysconfig/network

i got the above from a previous post asking the same question. i just check and i have that file and it has 2 lines:


All times are GMT -5. The time now is 04:41 PM.