Question
How do I change the server's hostname?
Answer
You can change the server's hostname via WHM or from the command line.
WHM
- Log in to WHM as the
rootuser - Navigate to Home / Networking Setup / Change Hostname
- Review the instructions on that page to avoid choosing a bad hostname
- Enter your desired hostname into the New Hostname: box at the bottom of the page
- Click the blue Change button
Command line
- Log in to the server via SSH or WHM's Terminal as the
rootuser -
Run the following command:
# /usr/local/cpanel/bin/set_hostname new.hostname.tld
Note: You need to replace new.hostname.tld with the actual hostname you want to set
Comments
0 comments
Article is closed for comments.