Question

Setting up a sub domain to point to a different droplet

Hi

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) http://178.62.26.90/ben/passion4web.conf

Any ideas?


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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

The configuration you have should route requests for dev.passion4web.co.uk to 178.62.26.90 and requests for www.passion4web.co.uk or passion4web.co.uk to 178.62.83.208

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.