DO Ideas 2

Automatically create DNS entries when creating a droplet

Once a droplet is up, we get a reverse DNS entry associated with the IP. That's great :-)

Having DNS management on DigitalOcean is also great.

But -- you could take that one step further. Having delegated the ".do.XYZ.QW" zone to DigitalOcean, when starting up a server I use "" as the hostname.

Yet I have to create the A record manually. Not a big deal, but it could be easier :-)

Since the zone is already managed by DO, how about creating a matching A record automatically?

  • Ivan Vučica
  • Sep 11 2018
  • Attach files
  • Jonathan Fisher commented
    September 11, 2018 18:52
  • Anonymous commented
    September 11, 2018 18:52

    AWS handle this by including the IP address and the server location within the DNS entry

  • Aaron de Bruyn commented
    September 11, 2018 18:52

    Totally need this.

    I think having the following approach would be perfection:

    Allow users to delegate one or more zones, and have the ability to set one as a 'default'.

    * Droplets created with an explicit domain 'mydroplet.example.tld' will get added to 'example.tld' if it has been delegated.

    * Droplets created with only a hostname 'mydroplet' will get records added to the 'default' if it's available

  • Artur Bodera commented
    September 11, 2018 18:52

    Here's a simple use case:

    1. I delegate a (sub) domain to DO nameservers i.e.
    2. I create a new droplet with hostname:
    3. ... I wait for the droplet to be created ...
    4. I inspect the DNS page.

    An A record has been created for me, along with PTR, for the newly created droplet:

    Only a PTR record has been created, but no A record.

    I have to manually copy the ip address, go to DNS, edit zone, click add A record, paste the ip address and manually enter "droplet1" name, click save, wait for propagation. Why does it have to be so convoluted ?

  • Artur Bodera commented
    September 11, 2018 18:52

    PTR records are already being created, but A records are a pain to manage manually. Please fix that.