Question

How to change a droplet name, and all associated configurations?

I’ve seen other responses to this subject, but I’m still not sure. I bought my droplet with a friend, and since both of us have websites, we didn’t use a droplet/host name of either. we just used a random name (without any domain) for it.

But we are using this to host our websites and applications. Given that, we need email forwarding and SMTP capabilities (not necessarily a full blown SMTP server, but at least a way to forward emails to any domain pointing at the server, and ability to send emails through php’s mail() function without hassle).

I’ve seen tutorials for this and most of them require the droplet/host name’s to be a valid domain name.

Is there any other way to do it? If not, what else do I need to change, appart from renaming the droplet and changing the hostname of the server? Is it that simple? :)

I’m using Ubuntu 14.04.


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Maybe the user interface has changed since this question was answered in November. This is how I changed the droplet name:

  1. Login to the Digital Ocean Control Panel
  2. Click the droplet you want to rename
  3. Then, on the droplet detail window, click on the name of your droplet (you wouldn’t know you could)
  4. Change the name in the entry field and click the check mark

Voila!

$ sudo hostnamectl set-hostname exchange.mydomain.com Use this command to change the name from inside the droplet.

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