DNS templates for many domains

Posted June 2, 2016 2.5k views

Many DNS services has the ability to create templates or apply the same basic DNS setup for many domains. Is that possible with Digital Ocean, or something that could be added in the future?

Lets say I have 10 domains, which should all have the same A records and be pointing at the same droplet. Now I’ll have to create 10 DNS configurations, and it is time consuming the manage. If I have 100 domains, it’s even worse, and the interface isn’t giving a good overview of the domains.

It would also be great if it was possible to create groups/folders for the domains - something that would probably be solved by implementing templates.

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.

Submit an Answer
1 answer

We recently implement droplet tagging in our API which does allow you to do some group functions on droplets but this is not yet available for DNS records.

I would recommend either writing your own client using the API or a quick script to use doctl (the command line client) to create domains in a batch.

by Marko Mudrinić
DigitalOcean's web based control panel provides a convenient, point-and-click interface for managing Droplets. There are many times, however, when a command-line tool may be a preferable alternative. doctl, the official DigitalOcean command-line client, leverages the DigitalOcean API to provide access to most account and Droplet features.