Question

Cloudflare: Pointing subdomains to a different droplets?

Hi,

I have my main domain.com pointing to 1.2.3.4 droplet. Now I want to set my new app.domain.com to 5.6.7.8 droplet using CloudFlare.

For this I created an A record with the name app and the value 5.6.7.8, but for some reason when I check the DNS propagation or when I ping app.domain.com, it still resolves to 1.2.3.4.

This is my current configuration:

Type Name Value TTL A app points to 5.6.7.8 Automatic A domain.com points to 1.2.3.4 Automatic A www points to 1.2.3.4 Automatic

Any idea of why this may be happening?


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.

@juanra

Generally what I’d recommend setting up is:

A          domain.com   DROPLET_01_IP
CNAME      www          domain.com

A          app          DROPLET_02_IP
CNAME      www.app      app.domain.com

DROPLET_01_IP = 1.2.3.4

DROPLET_02_IP = 5.6.7.8