What to put as hostname in VPS setup?

Solution 1:

Like EEAA said, you can put in basically whatever you want.

That said, I do recommend having some kind of naming strategy for your hosts. Even if you only have a single VPS currently, it's not at all unheard of to grow systems horizontally over time, or to split services that were once co-located on a single server onto different servers.

Such a naming scheme can be as fancy or as boring as you like. You could use for example names of games (soccer, chess, ...), astronomical objects (proxima-centauri, saturn, ...), cities, species of animal, or just technical names that directly reflect the function of the particular host (such as ns2 or mail1). If the people you work for lack humor, I recommend purely technical names, or even a simple sequential scheme (to my knowledge, nobody ever got fired for naming a system server04).

I also strongly suggest putting the names under a domain name under your control. It's not actually a requirement, but doing so will save you from many headaches in the future. Then add whatever names you come up with to that domain name in DNS.

So if you have registered example.com then you might put in luna.example.com or chess.example.com or whatever else strikes your fancy.

You should strive to pick names that are unlikely to conflict with any public names you might reasonably want to use in the future which aren't guaranteed to be served by this particular host for as long as this particular host exists.

You can then configure the software running on that host to serve content for any host name of your choosing, and publish any host name of your choosing. Just because the physical (or in this case, virtual) host is known by an astronomical name doesn't mean you can't serve www.example.com off it.

Solution 2:

Put whatever you want. The hostname of the server has nothing to do with what the names are of the services you'll be hosting on the server.