By David Koh
So I recently renamed my droplet to a new name via DigitalOcean’s control panel, however I realized that my ubuntu hostname that I see at my command line did not update.
I did some searching on the forums and it appears that I have to manually reconfigure my server to change the hostname. The question I have is that is it perfectly fine to have one name on my Digital Ocean server and another name for its hostname? And if that’s the case, what is the use of the digital ocean droplet name and hostname if they can differ? Is the Digital Ocean droplet name just for convenience?
Sorry, still quite new to all this!
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!
Sorry for the confusion. Yes, there is no inherent issue in those names not matching. When you first create a droplet the name you choose is used as the initial hostname but our systems do not have any real access to the internals of your droplet once it’s launched (aside from the specialized case of the password reset tool).
Some services may expect the hostname to resolve or may run into problems but this should only be an issue if the hostname (not the droplet name in the control panel) is a fully qualified domain or subdomain name. In other circumstances having them different should be fine. When you set a name for your droplet in the control panel our system looks to see if the name you used is a FQDN (fully qualified domain name) and if it is, it uses that name to populate a reverse DNS (PTR) record so lookups of your IP address will return that name.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.