Finally you ordered your dedicated server and you want to start using it but unfortunately you are not much technically strong for managing it properly. Though your server provider will offer you technical support but as a webmaster you should need to know few basic things. One of them is setting up hostname for your server.
Your hostname must be FQDN : Fully Qualified Domain Name. Your server hostname is the name of your server that you want to set. Hostname is the your server’s name that you want to set. If you want to use server.domain.com then you should always set hostname for the domain you are owner.
1) Log in to your WHM control panel : http://IP/whm >> then edit dns zone >> you need to select your domain name.
Then server IN A { Use your server IP }
www.server IN A { Use your server IP }
OR
If you are using shell then you just need to amend following file # vi /var/named/domain.com.db using
server IN A { Use your server IP }
www.server IN A { Use your server IP }
Just save this file and reload named using #service named reload
#rndc reload domain.com
2). You can also set hostname using following WHM >> Basic cPanel/WHM Setup >> Hostname. You can do it using command line prompt for this you need to login to shell /server as a root then run hostname server.domain.com { here the second parameter will be the hostname that you want to set }
3) You need to verify if you have set hostname correctly using /etc/hosts and need to confirm that you have used correct hostname and havnt done any spelling mistake or any other mistake. If anything is set incorrect while setting hostname then few services for your server may get affected/not work properly which are related to hostname.
4) Finally its time to fire “hostname “ command on server to crosscheck if you have set your hostname correctly and thats all, you have set Hostname successfully
Posted under Linux cPanel Hosting, Reseller Hosting, cpanel Hosting, cpanel hosting tips
This post was written by admin on September 3, 2008



















