From the WHM main panel click on “Change Hostname” and enter the desired value in the “New Hostname” field:

Set the server hostname trough WHM/cPanel

 

The server hostname has to use a registered domain name and has to point to your server IP address.