Question

Directing a subdomain to another droplet

Hey,

I have two droplets, one on DigitalOcean and the other on some other service,

The first one connected to the domain www.mysite.com and connected to the website on the other service (IP 1.2.3.4).

I want to create a subdomainain named app.mysite.com and connect it to the DigitalOcean droplet.

So I tried creating an app.mysite.com on DigitalOcean (after connecting the nameservers on GoDaddy), works fine for some devices, but it’s been a week and when I check the subdomain on websites like https://dnschecker.org/, it seems like some DNS servers can’t identify the DigitalOcean droplet.

Someone suggested a CNAME, but it’s not working well at all.

Best, Aviv.


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.

Hi there @aviv1,

What you need to do is to add A record for your subdomain name to point to the new DigitalOcean Droplet IP.

There should be no need to add NS records for the subdomain name. If your main domain name is using GoDaddy’s nameservers, then this means that you need to add the A record for your subdomain name via your GoDaddy’s DNS zone manager. If you are using the DigitalOcean nameservers, then you could add the A record for your subdomain via your DigitalOcean DNS zone manager.

You would use a CNAME if you wanted to point your subdomain to another domain. When pointing to an IP address you should use an A record.

Let me know if you have any questions. Regards, Bobby