Register domain

I have a problem when try register a domain. The domain was used in other droplet but the droplet was deleted, now I want register a domain in a new droplet.


Hi there @dragonite98,

Have you resolved this issue now or are you still in need of help regarding this?

Hi there @dragonite98,

Where within the droplet creation process are you seeing the need to register a domain? Are you referring to the unique hostname assigned to each droplet?

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

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.

Hi @dragonite98,

I believe as @MattIPv4 said, most probably you are referring to the hostname of the server. Please note this is just a cosmetic change and you can always actually change the hostname directly from your droplet.

What I’ll recommend is to create the droplet with a random name for a hostname and I’ll show you how to change it.

In Ubuntu 18.04 we can change the system hostname and related settings using the command hostnamectl.

To change the system static hostname to TestingHostnameChange, you would use the following command:

sudo hostnamectl set-hostname TestingHostnameChange

1. Change the hostname using hostnamectl.

The hostnamectl command does not produce output. On success, 0 is returned, a non-zero failure code otherwise.

2. Edit /etc/hosts.

The file will look something like that   localhost   TestingHostnameChange

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

Notice where I’ve added under localhost the new name of the server.

That’s it, you are ready.

Kind regards, Kalin