Report this

What is the reason for this report?

How to correctly set subdomain on Digital Ocean

Posted on February 10, 2015

Hi,

It looks like I’ve got myself in a muddle. I have a website hosted with Hetzner and they currently have the zone file.

I would like to set up a subdomain.mydomain at digital ocean.

I have the virtual hosts and so on correctly set up on my droplet and have added subdomain.mydomain to my digital ocean account.

I then added a new CNAME record:

subdomain CNAME digitaloceanIP

I think that’s where I’ve gone wrong?

I havent added the @ record they provided because I’m paranoid its going to overwrite or cause a conflict with my other services. (Note to self, spend more time understanding the zone file.)

What is the correct way to set this up so that it doesnt disrupt my other services and so forth?



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!

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.

Think you just want an A record here.

CNAME will never be an ip address it will always point to an A record.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.