Issue with CNAME record for root domain naijahub.co - Hostname not permitted

Hello,

I’m trying to connect my Discourse forum to my custom domain that’s managed through Cloudflare.

I’ve set up a CNAME record in Cloudflare with:

However, when trying to configure this in Discourse, I’m receiving a “Hostname not permitted” error even though Discourse recognizes that the site is pointing to my domain.

Could you please help me understand:

  1. Is my CNAME configuration correct for a root domain?
  2. Should I be using CNAME Flattening or another Cloudflare feature?
  3. Are there any DNS propagation issues or additional settings I need to configure?

I’ve attached screenshots of both my Cloudflare DNS settings and the Discourse error for reference.

Thank you for your assistance.

To connect your discourse forum you need to setup an “A” Record.

The one name is your sub domain name. In my example above it is “community”. The value I have redded out is your VPs server IP address.

With cloudfare you will want to search as there are somethings you need to setup to make cloudfare play nice