Cloudflare: Pointing subdomains to a different droplets?

Posted May 24, 2017 6.4k views
NetworkingDNSUbuntu 16.04


I have my main pointing to droplet. Now I want to set my new to droplet using CloudFlare.

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

This is my current configuration:

Type Name Value TTL
A app points to Automatic

A points to Automatic

A www points to Automatic

Any idea of why this may be happening?

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


Generally what I’d recommend setting up is:

CNAME      www

A          app          DROPLET_02_IP



  • This works perfectly. Thank you very much. Do you have any idea why the record is necessary?

    • @juanra

      It all depends on setup.

      If there’s something in your config using www or, then you’d need those entries – even if it’s a redirect. Generally it’s always a good idea to setup the www variant as it’s a common use URL. Many may type it in before they type in your address without it, thus if it’s not properly setup, it could error out or just not work at all – the end result, you lose some degree of potential traffic and/or customers (if you’re selling something).

      • Hi guys, I am having a very similar issue.

        I have a domain set up on cloudflare and the main site is working fine.
        I currently have a marketing site set up on that, hosted on webflow.

        I would like to set up two subdomains to host an associated web app that I have built.
        I.e. from the marketing site at (www) a user can click and go to
        The two subdomains must do the following

        • One subdomain ( should points to Digital Ocean Space that hosts the app’s frontend code. The address of the Space on DO has the form of:
 i.e. it is not an IP address.

        • Another ( which points to the floating IP of the Digital Ocean Droplet which is hosting the backend server code for the web app.

        How should I set these two subdomains up successfully?

        When I tried, following the advice above, I received the following error when I checked the site
        it keeps redirecting in a loop.

        I am getting tired of this.
        I think I will replace Cloudflare and Digital Ocean with Netlify, it seems much more straightforward.