Custom domain - (partial CNAME setup)
Hi,
I want to use a custom domain with my pages app, the issue is I cannot have the nameservers on the CF account they need to be held on a different CF account.
Suggested solution is to use a partial CNAME setup: https://developers.cloudflare.com/dns/zone-setups/partial-setup/setup/
The setup is successful however I am unable to add the www. subdomain. (Step 3)
www.example.com CNAME www.example.com.cdn.cloudflare.net
The following error code is displayed:
DNS Validation Error (Code: 1004) Invalid CNAME target. Cannot use records with partial suffixes.
Anyone have any idea whats happening?
Set up a partial (CNAME) zone · Cloudflare DNS docs
A partial (CNAME) setup allows you to use Cloudflare’s reverse proxy while maintaining your primary and authoritative DNS provider.
2 Replies
You can use external domains with Pages Custom Domains, it just has to be non-apex (i.e has to be a subdomain, like www, same requirement as partial setups), although it may be confused when the other domain is already at CF?
The error you are encountering is
A CNAME 85 DNS record pointed to www.example.com.cdn.Cloudflare.net should only be created when you are using a third-party set of of name servers and you need to proxy through Cloudflare on a partial setup through a hosting provider, not on a full setup when you are using Cloudflare name servers.I don't think you can create those records if the domain itself is using CF DNS already, just on other account, sounds like to me. Could use subdomain nameserver setup I assume (https://developers.cloudflare.com/dns/zone-setups/subdomain-setup/)
thanks this is really helpful!