Report this

What is the reason for this report?

How do you make your own DNS?

Posted on February 1, 2016

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.



This textbox defaults to using Markdown to format your 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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.