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.
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!
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.