Question

What better hostname? test.exemple.com or exemple.com

Hi,

What better hostname? You have any rules? What’s the difference?

test.exemple.com or exemple.com

Thanks.

Subscribe
Share

I am not sure if there are any specific rules, but I like to use one main domain for each droplet, and give the hostname the same name.

I find it helps me to keep track of what droplet I am using.

If you use a sub-domain, the hostname will be truncated at the ., so when you ssh in your will get:

user@test:~$

If you use a full domain you will get:

user@yourdomain:~$

When I am logging in to multiple droplets throughout the day, I find it helpful to be able to glance at a terminal and see that I am logged in to me@mydomain

Beautiful, thank you. I will use only exemple.com.


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.

Whichever you like the most.