Question

How do you make your own DNS?

Hello,

So I am thinking of starting a small web host and would like to use a Digital Ocean VPS to run it. The thing I am getting stuck on is how will I setup my DNS servers so if a customer has his own domain he can use it? Do I just make ns1.(mydomain).com and ns2.(mydomain).com, and just point those to my VPS’s IP address??

Thanks

F.Y.I the control panel I will be using is vestaCP.

Subscribe
Share

Hello, I’m also trying to setup my own dns with cpanel but can’t get it running. I did the following:

  1. I added hostnames with the 3 ips same as D.O. ns2 173.245.59.41 ns1 173.245.58.51 ns3 198.41.222.173

  2. I put the new nameserver to the same domain.

  3. I added the nameserver to cpanel.

And still not working… this is the domain with own nameserver: gsmhosting.cloud


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

There are a few steps in that process.

  1. You’d need to register the private name servers with your domain registrar. Every registrar handles this differently. This is also referred to as the GLUE records.
  2. You would then point your domain to those name servers
  3. You would need to add the domain to your DNS server (VestaCP) and make sure there are A records for the ns1 and ns2 subdomains.

Once all three steps are complete, you could have other sites hosted on your VestaCP system and simply have the domains pointed to your name servers and everything should magically work.

Happy coding,

Jon Schwenn Platform Support Specialist DigitalOcean