# Hostname in new VPS

**URL:** <https://forum.hestiacp.com/t/hostname-in-new-vps/14499>\
**Category:** Community Support\
**Created:** [May 25, 2024, 8:44am UTC](https://forum.hestiacp.com/t/hostname-in-new-vps/14499 "2024-05-25T08:44:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![labrujaaveria](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/l/a4c791/32.png) [@labrujaaveria](https://forum.hestiacp.com/u/labrujaaveria)\
**Post date:** [May 25, 2024, 8:44am UTC](https://forum.hestiacp.com/t/hostname-in-new-vps/14499/1 "2024-05-25T08:44:11Z")

</div>

I used VestaCP in the past, but I’m new to HestiaCP and I want to set up a new VPS server running HestiaCP.

As far as I read in the community, is not possible to use the domain name as the server hostname, while it was possible in VestaCP.

What should be the right decision/procedure to decide about the hostname? Should I use the existing “[dns1.mydomain.net](http://dns1.mydomain.net)” or should I use a new name like “[myhestia.mydomain.net](http://myhestia.mydomain.net)”?  
Is there any consequence depending on what is decided?

I have read other users to use a certain domain name and then move it to a user, but since I will start using HestiaCP from now on, I would like to use a “good/right approach”.

To be honest, I don’t have any preference, so whatever you suggest would be fine.

Thank you very much in advance for your help.

---

<div class="post-metadata">

**Author:** ![sahsanu](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/sahsanu/32/9318_2.png) [@sahsanu](https://forum.hestiacp.com/u/sahsanu)\
**Post date:** [May 25, 2024, 9:05am UTC](https://forum.hestiacp.com/t/hostname-in-new-vps/14499/2 "2024-05-25T09:05:00Z")

</div>

With that nickname you must be from Spain 😉

> [@labrujaaveria](#):
>
> What should be the right decision/procedure to decide about the hostname? Should I use the existing “[dns1.mydomain.net](http://dns1.mydomain.net)” or should I use a new name like “[myhestia.mydomain.net](http://myhestia.mydomain.net)”?

I usually choose a short host name that is easy to remember and clearly identifies the server, said that, choose what you want.

> [@labrujaaveria](#):
>
> Is there any consequence depending on what is decided?

If you want to user your server to send mail, yes. The ip of your server must resverse resolve (PTR record) to that hostname, and of course the hostname must be resolved to your server’s ip because Exim will identify itself with that hostname.

> [@labrujaaveria](#):
>
> I have read other users to use a certain domain name and then move it to a user, but since I will start using HestiaCP from now on, I would like to use a “good/right approach”.

The less things are being used by admin user, the better, so I recommend to add the hostname of your server to the user that will have the main domain but as default Hestia will try to create it under user admin so I won’t be worried about that. If the admin user holds the hostname and another user needs to host the main domain, maybe you should modify the security policy **Enforce subdomain ownership** to **No**

---

<div class="post-metadata">

**Author:** ![labrujaaveria](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/l/a4c791/32.png) [@labrujaaveria](https://forum.hestiacp.com/u/labrujaaveria)\
**Post date:** [May 25, 2024, 11:08am UTC](https://forum.hestiacp.com/t/hostname-in-new-vps/14499/3 "2024-05-25T11:08:01Z")

</div>

Thank you @sahsanu , yes, I’m Spanish 😉  
I think I understand the situation a bit bitter now.

This is a personal server (basically for family and friends) and will contain 5 users (5 different domains) and all of them will have email service.

Since the VPS provider only provides IP and not any generic DNS address I could use as a hostname, I need to use my own address.

Since I’m already using “[dns1.mydomain.net](http://dns1.mydomain.net)”, is it better to use it as hostname or is it better something different, not used in any hosting, like “[server.mydomain.net](http://server.mydomain.net)”?

Thank you for your patience, I’m not an expert in linux neither in sys admin.

---

<div class="post-metadata">

**Author:** ![sahsanu](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/sahsanu/32/9318_2.png) [@sahsanu](https://forum.hestiacp.com/u/sahsanu)\
**Post date:** [May 25, 2024, 11:12am UTC](https://forum.hestiacp.com/t/hostname-in-new-vps/14499/4 "2024-05-25T11:12:16Z")

</div>

> [@labrujaaveria](#):
>
> yes, I’m Spanish 😉

I knew it 😃

> [@labrujaaveria](#):
>
> Since I’m already using “[dns1.mydomain.net](http://dns1.mydomain.net)”, is it better to use it as hostname or is it better something different, not used in any hosting, like “[server.mydomain.net](http://server.mydomain.net)”?

I would use `server.example.net` instead of `dns1.example.net` but as I said, that’s my personal choice, use the name you are more comfortable with.

> [@labrujaaveria](#):
>
> Thank you for your patience, I’m not an expert in linux neither in sys admin.

You are welcome and no worries, step by step 😉

---

<div class="post-metadata">

**Author:** ![labrujaaveria](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/l/a4c791/32.png) [@labrujaaveria](https://forum.hestiacp.com/u/labrujaaveria)\
**Post date:** [May 25, 2024, 11:20am UTC](https://forum.hestiacp.com/t/hostname-in-new-vps/14499/5 "2024-05-25T11:20:23Z")

</div>

Thank you, Sahsanu (Muchas gracias)!

---

<div class="post-metadata">

**Author:** ![system](https://forum.hestiacp.com/uploads/default/original/1X/d9a5b68bf50ced83e880b56452e592b204761b19.png) [@system](https://forum.hestiacp.com/u/system)\
**Post date:** [June 24, 2024, 11:20am UTC](https://forum.hestiacp.com/t/hostname-in-new-vps/14499/6 "2024-06-24T11:20:35Z")

</div>

Closed on June 24, 2024, 11:20am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
