Renaming a droplet

April 7, 2014 12.5k 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?
4 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.

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

Have another answer? Share your knowledge.