How do you make your own DNS?


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??


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

Show comments

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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