Adding subdomains to Cloudflare CDN

In order to set up Cloudflare, my hosting provider (Siteground) requires 2 new CNAME to DNS:

www CNAME www.yourdomain.com.cdn.cloudflare.net
cloudflare-resolve-to CNAME yourdomain.com

with the A remaining as it was
yourdomain.com A IP

But when it comes to subdomains, they don’t seem to have a straight answer.
If I follow the above format, then I should just have to add
www.yoursubdomain CNAME www.yoursubdomain.yourdomain.com.cdn.cloudflare.net
while keeping
yoursubdomain.yourdomain.com A IP
and similarly for the next level
add
www.yoursubsubdomain.yoursubdomain CNAME www.yoursubsubdomain.yoursubdomain.yourdomain.com.cdn.cloudflare.net
while keeping
yoursubsubdomain.yoursubdomain.yourdomain.com A IP

But they can’t seem to agree on this. Some think it works like the above, the others think (and their system automatically makes the changes as) following:
Remove
yoursubdomain.yourdomain.com A IP
Add

yoursubdomain CNAME yoursubdomain.yourdomain.com.cdn.cloudflare.net
www.yoursubdomain CNAME yoursubdomain.yourdomain.com

Can anyone shed light on what the proper way to do this is?

1 Like

The question is full of confusion first of all ,

In recommend you to contact your web host and ask them what records to add

Then
Go to DNS manager and add the records

Yes, that’s the point of the question. The responses of the webhost are confusing, which is why I asked here.

Then try re asking to explain them in detail

Sure if all you want to cover is www.yoursubdomain and not yoursubdomaon.yourdomain.com.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.