DNS templates for many domains

June 2, 2016 271 views
Networking DNS DigitalOcean

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.

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.

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.
Have another answer? Share your knowledge.