Help - Search - Members - Calendar
Full Version: Changing the default server name for new box
The Planet Forums > Operating Systems > Red Hat Linux > Red Hat HOWTOs
Brendon CJ
Hi all

Does anyone know how to change the default server name from plain.ev1servers.net to say maybe me.domain.com?

Used to see a post in this furm but now its gone.

Much obliged.
Brendon CJ
Okay,

Managed to get this for those interested. note that this is tested on ENSIM c/w Red Hat.

--- attached ---

1) SSH to your box
2) login as root
3) type pico /etc/hosts
4) modify the line that says

216.40.226.??? ensim.rackshack.net ensim
to
216.40.226.??? srv01.yourdomain.com srv01

Substitue the above ip for your own and same with the server name. Change that to your own. It can be anything but it must contain at least 2 periods in the name and preferably ending in com or your ext, net, cc, tv or whatever. See my example above!

type cntrl-x and save your file.

5) type pico /etc/sysconfig/network and modify the second line in file network to match the address of your server name as you did in step 4:

NETWORKING=yes
HOSTNAME="ensim.rackshack.net"
GATEWAY="216.40.226.1"
GATEWAYDEV="eth0"
FORWARD_IPV4="yes"

So you would change the line
HOSTNAME="ensim.rackshack.net"
to
HOSTNAME="srv01.yourdomain.com"

Save with a ctrl-x then reboot your system. You must reboot for the server names to propagate throught the system.

DO NOT do anything to DNS till after the system reboots because all this will be changed when the server comes back online.

Good luck!icon_razz.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.