How to correctly set subdomain on Digital Ocean

Posted February 10, 2015 8.3k views


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?


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

Think you just want an A record here.

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