How Do I Create Sub-Sub-Domain on Cloudflare DNS?

user4804299 picture user4804299 · Jun 12, 2015 · Viewed 28.9k times · Source

I've let cloudflare manage the dns of my domain.com

I have created id.domain.com for country's specific customer. I've done it by created cname id with alias domain.com

I need to create customer portal: my.id.domain.com. How?

Answer

David Taiaroa picture David Taiaroa · Jul 12, 2015
  • In Cloudflare, open the DNS records for domain.com
  • Create a A record for my.id and enter the IP where my.id.domain.com will be hosted, and add record enter image description here
  • Setup the site my.id.domain.com at the IP you specified

If domain.com is on Cloudflare and the Cloudflare nameservers have propagated, the sub-sub domain propagation should be more or less instant

As correctly noted by ThorSummoner and user296526, this will work on the Cloudflare free plan if you aren't using SSL.

If you want to have a sub sub domain with SSL on Cloudflare, you need to a dedicated Cloudflare dedicated SSL certificate which is available as a paid plan. To quote from the Cloudflare site:

Cloudflare Dedicated Certificate with Custom Hostname: $10 per domain per month

Includes all benefits mentioned above for Dedicated Certificates Protects your domain, subdomains (.example.com), as well as up to 50 additional hostnames Can extend protection beyond first-level subdomains (.www.example.com, not just *.example.com) Dedicated SSL certificates typically provision within a few minutes but can take up to 24 hours.

Full details here