Renaming a droplet

Posted April 7, 2014 33.2k views
Hi Folks, When asked to give the droplet a name, the docs told me a droplet could be renamed later at any time. So now I want to do that I can't find how to. Would somebody please tell me?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
5 answers
Make sure you also edit your droplet's hostname internally as well. Update /etc/hostname and /etc/hosts and reboot.
  • Kamal,

    I renamed the droplet into my primary domain ( ), what will be the ideal update in /etc/hostname and /etc/hosts

  • Just curious. Why can’t the hostname be changed automatically in those two places when we perform a rename in the control panel?

    • From what I understand that would require taking your server down, applying the change, and then taking it back up. Also it could conflict with some other settings you have on your computer, so probably not worth the trouble in most cases. Plus there is no real need for the names to be the same.

  • “and reboot”

    Do you mean to reboot Apache or the entire server? sude reboot I guess.

Today (2017) the interface enabling direct name change: at the page of your Cloud Panel (…), simply click on the current name of the Droplet, and you will then be able to input whatever name you choose. Thanks @MikeG.

the original image link is offline. Settings > Rename

If you are using CentOS you need to update this file /etc/sysconfig/network

Contents of this file:


so just change HOSTNAME and that’s it

  • If you are using CentOS you need to update this file /etc/sysconfig/network does not extist on my centos 6.5 droplet.

    and neither do etc/hosts or etc/hostnames on my ubuntu droplet