Our website was build by a design company that also hosts the site, and uses Floudflare. We currently manage our own DNS through a CPanel (hosted somewhere crappy) and it is set up like this:
example.com. 600 IN A 22.214.171.124 www.example.com. 600 IN CNAME www.example.com.cdn.cloudflare.net cloudflare-verify.example.com. 3600 IN TXT 471998825-37828459
The functions we used the CPanel have all been migrated elsewhere, except DNS. It doesn’t make sense to keep paying for it just to host DNS. So we would like to move to a better DNS host, like Cloudflare.
Question: What are the DNS entries I need to make in my Cloudflare account so our site runs properly?
I have added the site to my Cloudflare account, added subdomains, noted the Name Servers Cloudflare has assigned, but I don’t know what DNS entries to put for the root domain.
When the “www” CNAME is attempted to be added as above, I get this error:
DNS Validation Error (Code: 1004) Invalid CNAME target. You aren’t allowed to use records with partial suffixes
Tracking this down in the Cloudflare Community, I find this explanation:
Invalid CNAME target. You aren’t allowed to use records with partial suffixes (Code: 9059)
A CNAME DNS record pointed to
www.example.com.cdn.Cloudflare.netshould 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.
This option was disabled as it creates a self-referencing loop for Cloudflare internal DNS and overloads it with a large number of requests from external resolvers.
This makes sense, but I don’t know what the solution is to avoid the self-referencing loop for Cloudflare internal DNS…