I started using HestiaCP for managing my web hosting & i am a bit stuck with the DNS setup. I have got my domain registered and I have added it in HestiaCP but I am not sure how to configure the DNS settings correctly.
Do I need to set up any specific records, like A or CNAME records, in HestiaCP? I am also trying to integrate with google cloud so any tips on that would be super helpful. there is anything I should check on my domain registrar’s side to make sure everything works smoothly??
As well, I found these resources when doing research on this; How to add SSL to webmail domain using CLI
I would appreciate any tips or guidance you all can share. I am still learning the ropes, so if you have any resources or links to helpful tutorials, please send them my way.
You basically have two options. If you installed hestia with the DNS server, bind, then you can use the hestia server itself to control the DNS. So in this case you tell your domain registrar that your hestia server is the default nameserver for the domain.
The second option is to use a third party as your nameserver, and in this case you set them to be your nameservers at your domain registrar.
Sometimes the domain registrar will also operate as a nameserver and let you edit your dns there. eg Godaddy, Cloudflare, porkbun etc.
Once you’ve figured out who you’re using as your nameserver/DNS provider, then its just a case of adding the records. You’ll need these to get going.
An A record for domain.com pointing to server IP 1.2.3.4
An A record for www.domain.com pointing to server IP 1.2.3.4
An A record for mail.domain.com pointing to server IP 1.2.3.4
An A record for webmail.domain.com pointing to server IP 1.2.3.4
(you may also use CNAME records – aliases – for some of these, but I’m just trying to keep it simple)
Also you might need
MX record pointing to mail.domain.com to get mail there.
Some TXT records for SPF and DKIM.
First of all point your all DNS to Cloudflare, it is very good for DNS management. Then which domain/subdomain you want to connect with hestiaCP just configure that DNS name on Cloudflare along with hestiacp IP. In case of email configuration, there are some custom changes you have may have to make, because as per my previous exp with hestiacp, we have to customize some stuff to work 100% smooth.