I'm confused about DNS settings with Hestia

I have a domain, dgredd (dot) net that’s registered with namecheap; previously, both web and email were hosted with namecheap.

Now, I have a VPS from ovhcloud. It’s domain is vps-467b1834 (dot) ovh (dot) ca and the IP Address is 139.99.199.214.

I added the domain, dgredd (dot) net to HestiaCP for a website. I went to namecheap and changed the A record to point to this IP Address and it worked.

Then I went to use email as well. This is where I’m confused.

My understanding is HestiaCP can be a custom name server. So I deleted all the records out of namecheap, then said, use Custom DNS and gave it the following servers (sorry forum limits my posts with addresses):

ns1 (dot) vps-467b1834 (dot) ovh (dot) ca
ns2 (dot) vps-467b1834 (dot) ovh (dot) ca

I gave it these because in HestiaCP, when I look at the DNS records for my domain, it had two @ NS records which were:

ns1 (dot) ovh (dot) ca
ns2 (dot) ovh (dot) ca

but I don’t own that domain, so my guess was that it should have been what I have above. I updated the two @ NS records in HestiaCP DNS records for this domain.

But now nothing is working.

In namecheap, under Advanced DNS, when I look at the “Personal DNS Server” is lists ns1 (dot) dgredd (dot) net and ns2 (dot) dgredd (dot) net and uses the IP address 139.99.199.214

All the other DNS records in HestiaCP look like what I’d want for everything to work, but I guess I don’t understand how to get namecheap to defer to HestiaCP?

I’m sure this is a pretty basic setup question, but I don’t know the right terminology to search for a solution. I’ve read a few posts and how-to guides, but none of them seem to answer how to use the DNS records in HestiaCP.

The reason I would like to just use HestiaCP for all my DNS records is because I like having everything in one place. I kind of just want to delegate namecheap to point to the HestiaCP DNS?

I logged into the server and I can see the named . service is running.

From what i understood you were previously using namecheap dns. And then you updated it to use OVH dns. But you thought OVH DNS is hosted on your vps but its actually not. If you want to setup on your own name server you must have 2 servers primary/slave and in your domain provider you must create child servers. Your hosted name server should typically point back the the ip address of server 1/2.

If its too complicated just stick to hosting your DNS on cloudflare, namecheap or OVH. Those are pretty reliable.

Default detection on install in the user packages sucks as just take the hostname.domain.com and only keep domain.com instead taking. So you an change the settings manually how you like…