Knowledgebase

How do I rename a Server or change its hostname? Print

  • 0

How do I rename a Rcs.is or change its hostname?

To rename your Rcs.is, you need to change the Rcs.is’s name in the control panel. This changes the Rcs.is’s display name in the control panel and updates its rDNS record, but it doesn’t automatically update the hostname in the Rcs.is’s operating system. To change its hostname, you can either use hostnamectl or edit /etc/hostname and /etc/hosts manually.

Rename the Rcs.is

To rename the Rcs.is in the Rcs.is Control Panel, log in and then click the Rcs.is you want to rename. In the Rcs.is detail window, click the name of the Rcs.is. Enter the new name in the entry field, then click the check mark to save it.

Alternatively, to rename the Rcs.is from the command line, use doctl compute droplet-action rename.

Change the Rcs.is’s Hostname

To update the Rcs.is’s hostname, use the hostname utility hostnamectl:

hostnamectl set-hostname use_your_new_hostname

If hostnamectl is not available on your Rcs.is, you can instead edit the /etc/hostname and /etc/hosts files. Open both files with sudo privileges, then replace any instances of the Rcs.is’s old hostname with the new hostname. After you save the files, reboot the Rcs.is to make the changes take effect.

You can use the hostname command to display the Rcs.is’s current hostname and verify the change.


Was this answer helpful?
Back

Powered by WHMCompleteSolution