Have a droplet on a dev team, how do I link the site as a subdomain to the main site?

How do I link the PTR records from a dev account to the main account to the using DNS records in order to link the droplet to a subdomain. I followed this tutorial . But cannot see anything on my PTR records. Do I need to transfer the droplet from the dev to the other account? If so how?

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.


It really depends on what you’re actually trying to do.

If you need to make changes to the DNS Zone for a domain, and you’re using DigitalOcean’s DNS, thus managing the DNS from the Networking page of the control panel, then yes, you would make all DNS changes on the account that has the domain.

The PTR record really isn’t important unless there’s something specific you’re trying to do that I’m not understanding. If you’re simply trying to manage pointing a domain to an IP, a CNAME to a domain, etc, then the PTR doesn’t really matter.

If you’ll provide a more concrete example of what you need to do, I’d be more than happy to help. I’m just not too sure of what you’re trying to do from the first post.


When you visit Control Panel -> Networking -> PTR Records, the only records that will show are those that link the public IPv4 IP address to a Droplet.

You can’t modify your PTR records directly as these are setup when each Droplet is created. You can setup multiple Droplets to gain PTR records for each one though.

For example, using as the domain.

If I setup 4x Droplets:

The above will have a single PTR each. We could change that up a bit as well as use something such as:

And as above, the PTR records will reflect that.

You would need to make sure you have proper WildCard entries setup for the second example though and that would be something such as:

A          *          DROPLET_IP
A          *.web      DROPLET_IP
A          @          DROPLET_IP

The first entry enables * while the second enables *

To handle the requests for those DNS records, you’d need to make sure your web server is setup to handle the WildCard.

For example, with NGINX, we’d use something like:

server_name *;


server_name *;

On Apache, we’d use something such as:

ServerAlias *


ServerAlias *