---
title: Changing Server Hostname
description: "To change your hostname, enter the following command as root: $ hostname *servername.yourdomain.com* If you are using cPanel, you will need to resync your license with the cPanel license server.  To do this, use the following command: $ /usr/local/cpanel/cpkeyclt"
url: "https://getsimple.net/knowledgebase/changing-server-hostname/"
updated: "2021-07-12"
category: Cloud Server Management
---

# Changing Server Hostname

To change your hostname, enter the following command as root:

$ hostname *servername.yourdomain.com*

If you are using cPanel, you will need to resync your license with the cPanel license server.  To do this, use the following command:

$ /usr/local/cpanel/cpkeyclt
