If you need to change the hostname of your web server, you can do this with the following steps:
1. Login in your server with root
2. nano /etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.1.50 server1.foo.com server1
192.168.1.50 ns1.foo.com ns1
192.168.1.51 ns2.foo.com ns2
save changes and exit.
3. nano /etc/resolv.conf
search xe-group.net
nameserver 192.168.1.50
nameserver 192.168.1.51
save changes and exit.
4. nano /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=”server1.foo.com”
GATEWAY=”192.168.1.1″
GATEWAYDEV=”eth0″
FORWARD_IPV4=”yes”
This article is released by SupportFacility.Com — the leaders in providing outsourced technical support, live chat support & help desk support for web hosts. Interested ? Opt for a trial now.



