Move DigitalOceans DNS management to Virtualmin

  • Posted on July 3, 2014
  • marcelAsked by marcel

Hi, I have set up Virtualmin on my droplet. It is working, domain is working too. However, Virtualmin suggests various of DNS records I have to add in order to have everything working properly. Now I have to add these records in DO DNS manager, is it possible to let Virtualmin manage this? So instead of setting up DNS in DO, I would like to have this setup in Virtualmin.

Any tutorials on this? Thanks.

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.

Thank you dschreiber, very usefull!

With "“However, Virtualmin suggests various of DNS records I have to add in order to have everything working properly.” I meant that now if I click on DNS in virtualmin for my virtual server, I get ‘We suggest following DNS records’, followed by a serie of DNS records. I (currently) have to setup these records in DO in order to have things work.

About the glue record, is it nessacery that this domain name is a virtualserver in DigitalOcean, and other websites are subservers of this virtual server?

Yes this is! I run Virtualmin myself (including DNS). It may just be your wording (or my interpretation) but what do you mean by “However, Virtualmin suggests various of DNS records I have to add in order to have everything working properly.”?

The main points here (ask if you need more detailed steps):

  • For your domain, in the BIND DNS manager in Virtualmin, make two A records (ns1 and ns2 (they really can be called anything but usually name servers are named like so, you need two records as usually most domain registers require at least two name servers for a domain) and set them to your droplets public IP address.
  • After adding those make sure you go to the name server entries and make sure two exist. (Zone) name should be your domain name (followed by a .) and name server should be ns1.yourdomain.tld. and ns2.yourdomain.tld. (Take note of the . at the end of the domain name)
  • Head to wherever you registered/purchased your domain name (GoDaddy for example) and find where you can set the name servers, you might need to find what is referenced as “Glue records” and make two of them (ns1.yourdomain.tld points to your droplets public IP and the same for ns2 record) I personally register my domains at godaddy so I can really only provide exact instructions for them.
  • Once the glue records are updated, you can set it’s name servers to ns1.yourdomain.tld and ns2.yourdomain.tld and save.

That is the basics, I can provide more details if you require them just ask :) (Long time Virtualmin server administrator)

One note: if you have multiple domains, you can just set your other domains to use ns1.yourdomain.tld and ns2.yourdomain.tld and then create new virtual servers in Virtualmin. You do not need to setup your own name servers for each domain on your box.

Feel free to email me any questions you might have on Virtualmin if they arise in the future :) (If the OP does email me, I will post generalized/unpersonalized instructions back to this thread so others can benefit (assuming the OP gives the okay)

Good luck, Dustin J. Schreiber Voltark Technologies LLC dschreiber(at_sign)voltark(dot_)com