Custom subdomain support with Cloudflare DNS and Netlify Pages
I have a saas app say abc.com
serving from Netlify Pages and DNS is managed by Cloudflare.
I have set up this by adding CNAME/A
in Cloudflare which points to abc.netlify.app/IP
. Now I want my users to be able to set up their subdomain say new/anything.xyz.com
to be able to point to abc.com
Notes
- App is hosted with Netlify pages
- DNS is managed by Cloudflare
Expected flow
- User choose a subdomain from their dashboard (of our saas product), lets call it
company1
and what he see iscompany1.abc.com
- Now I want my customers to be able to use
company1.abc.com
as their redirect domain from their website sayxyz.co
,ab.xyz.co
oranything.any.co
. Expecting them to addcompany1.abc.com
as aCNAME
for their required domain.
Is this doable, then how? TA.
Solution 1:
As i know netlify need to define the custom domain first before you can add the CNAME record on DNS Zone.
So make sure the new.abc.com added to your custom domain list : https://docs.netlify.com/domains-https/custom-domains/