Change the server hostname in WHM to update the primary identifier for your server. This process is performed by a Server Administrator and affects how the server is identified across the network and within the WHM interface.
Before you begin
You will need:
Root access to the WHM interface
The desired new hostname (e.g.,
server.example.com)
Changing the Server Hostname
Log in to WHM.
In the left-hand sidebar, search for Change Hostname or navigate to Server Configuration > Change Hostname.
Enter the new hostname in the Hostname field.
Select the appropriate Hostname Type (typically Full Qualified Domain Name for production servers).
Click Change.
Warning: Changing the server hostname can impact services that rely on the hostname for identification. Ensure that any internal services or scripts that reference the old hostname are updated accordingly before making this change.
Confirm the result
The WHM interface will display the new hostname in the top header or the "Server Information" section.
You can verify the change via the command line by running the command
hostname -a.
Limitations
Changing the hostname does not automatically update the DNS records for your server. If you change the hostname, you must ensure that the new hostname is correctly reflected in your DNS zone files to ensure continued connectivity.
