Web Hosting Talk







View Full Version : Changing Hostname?


spiderman
09-24-2001, 11:12 PM
Could someone tell me if it is possible to change host name for a server?

DHWWnet
09-24-2001, 11:37 PM
you should be able to change the servers hostname, look in your httpd.conf file.

RackMy.com
09-24-2001, 11:38 PM
What OS?

spiderman
09-25-2001, 12:17 AM
Redhat6.2/WHM/Cpanel

Jm4n
09-25-2001, 12:29 AM
There's actually a few steps.

Step 1:

hostname -v "newhostname"

Step 2: Make sure /etc/HOSTNAME is correct.

Step 3: Update /etc/hosts to show the current hostname/IP

Step 4: Update any software where the hostname is hard coded (eg, Qmail control files, name server, etc).

Step 5: If you use an external name server and want reverse resolve to work, update that as well.

DHWWnet
09-25-2001, 12:39 AM
also, look into your

sc/sysconfig network -script and /schost

if you are changing the IP address ,make sure to get another whm/cpanel license.

we changed our Cpanel server IP address and have to contact Nick to issue another license.

spiderman
09-25-2001, 08:48 PM
Thanks guyz. I think I got the idea.