Page 1 of 1

Setting my own DNS on VPS so I can point domains to that VPS

Posted: Fri Jan 15, 2021 10:59 am
by redads
I bought Ubuntu VPS on namecheap with VestaCP

I'm trying to set up my own DNS to have ability to point domains to my VPS using just DNS not A records.

I followed instructions from this video: https://www.youtube.com/watch?v=M26gmTx2f7A

Domain (ie. mydomain.com) that I added is fully functioning, have SSL. So then I bought another domain and set up DNS to ns1.mydomain.com and ns2.mydomain.com that new domain isn't working at all.

I don't know what I'm missing, trying to figure it out for like week now.

Re: Setting my own DNS on VPS so I can point domains to that VPS

Posted: Fri Jul 30, 2021 5:10 pm
by Stage4000
Would love to see something on this as well but doesn't look like we are going to get it.

Re: Setting my own DNS on VPS so I can point domains to that VPS

Posted: Sun Nov 28, 2021 6:29 am
by Zape
On your main domain, have you changed the template to to child-ns?

http://vestacp.com/docs/#how-to-setup-v ... ameservers

Re: Setting my own DNS on VPS so I can point domains to that VPS

Posted: Mon Nov 29, 2021 3:27 pm
by sandro
redads wrote:
Fri Jan 15, 2021 10:59 am
I bought Ubuntu VPS on namecheap with VestaCP

I'm trying to set up my own DNS to have ability to point domains to my VPS using just DNS not A records.

I followed instructions from this video: https://www.youtube.com/watch?v=M26gmTx2f7A

Domain (ie. mydomain.com) that I added is fully functioning, have SSL. So then I bought another domain and set up DNS to ns1.mydomain.com and ns2.mydomain.com that new domain isn't working at all.

I don't know what I'm missing, trying to figure it out for like week now.
I don't quite understand your problem.

Your DNS servers (ns1.mydomain.com and ns2.mydomain.com) need to be configured in VestaCP Packages. (first menu on the Vesta panel)

After that, all new users created in Vesta will use their DNS servers.

Your DNS servers need to be configured in your new domain's DNS zone, for example:

@ ns ns1.mydomain.com
@ ns ns2.mydomain.com

Your DNS servers will also need to be in the Nameserver configuration of the new domain, for example at GoDaddy when you buy a new domain.

And that's it!

By the way, this video you put shows that the person doesn't understand how the DNS service works. (rs)

When you change the Nameserver at GoDaddy, for example, you need to wait a while for this information to be replicated by all DNS servers on the internet.

Typically, this time can range from 1 hour to 3 days. It depends on the country, region, etc.

Setting up SSL is the last thing to do and only after DNS is working do you enable SSL.

I hope it helps.

Re: Setting my own DNS on VPS so I can point domains to that VPS

Posted: Thu Mar 10, 2022 9:00 am
by rj2010ism
Try pointing IP to NS..

-------ON VPS---------

......IP/Value...................Record...............Type.............
NS1.domain.com @ NS
NS2.domain.com @ NS
-----------------------------------------------------------------------------
------ON Namecheap------------
go to "Advance DNS"

1- Create own custom name server
2- Select NS1/NS2
3- Insert the domain name and VPS IP
4- Apply
now go back to namecheap dashboard and select " Custom DNS " and fill in your ns details