Setting up a sub domain to point to a different droplet

April 29, 2015 3.1k views
DNS Apache


I have a domain that it is pointed to one droplet, and I would like to create a subdomain that will point to a different droplet, is this possible?

This is my current dns settings: Screenshot

I tried creating a CNAME with the domain ‘dev’ and entered the domain, but that didn’t work, I’m not sure what I’m doing wrong, but I’m still new to the whole dns thing

And here is my .conf file (on the other droplet, not the main)

Any ideas?

2 Answers

The configuration you have should route requests for to and requests for or to

If you just made this most recent change you may need to allow a bit of time for cached DNS results to be updated with the DNS server your Internet connection is using.

Ah okay. Silly me! It’s working now :)

Have another answer? Share your knowledge.