Cloudflare is a popular free DNS service that can be used to directly to create a CNAME apex record with their rewriting feature.
Two things to keep in mind if using Cloudflare:
- The validation record should not be proxied
- The routing record can be proxied - but if proxy is enabled on the routing record,
full end-to-end encryptionmust be enabled in the Cloudflare's
Apex Domains and
To have requests to
www.your-domain.com to be redirected to
Bulk Redirects in Cloudflare.
Refer to Cloudflare documentation: