Web hosting scenario of landing page (foobar.com) built in Jekyll and hosted on Cloudcanyon. Need a sub domain (chat.foobar.com) for a chatroom to go to a different server like Heroku to run the chatroom. My research shows this could be done with a cname but I'm also implementing cloudflare.
I didnt see this question asked so I thought it might make an interesting question. From my domain carrier I am pointing the nameservers to Cloudflare but in Cloudflare for me to get this to work do I just need to create the CNAME to point to the subdomain? I cannot direct the IP because the IP is always dynamic for Heroku.
How would this be setup?