Question

Directing a subdomain to another droplet

Posted June 2, 2021 45 views
DNS

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.

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

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