# בעיה ב-record CNAME עבור דומיין שורש naijahub.co - שם מארח לא מותר

**URL:** https://meta.discourse.org/t/issue-with-cname-record-for-root-domain-naijahub-co-hostname-not-permitted/359757
**Category:** Support
**Created:** [31 במרץ,‏ 2025,‏ 10:24pm UTC](https://meta.discourse.org/t/issue-with-cname-record-for-root-domain-naijahub-co-hostname-not-permitted/359757 "2025-03-31T22:24:57Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Wissamyah](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wissamyah/32/496823_2.png) [@Wissamyah](https://meta.discourse.org/u/Wissamyah)
#### Post date: [31 במרץ,‏ 2025,‏ 10:24pm UTC](https://meta.discourse.org/t/issue-with-cname-record-for-root-domain-naijahub-co-hostname-not-permitted/359757/1 "2025-03-31T22:24:57Z")

</div>

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:

- Type: CNAME
- Target: [naijahub.hosted-by-discourse.com](http://naijahub.hosted-by-discourse.com)
- Proxy status: DNS only (gray cloud)
- TTL: Auto

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.

 ![Screenshot 2025-03-31 180135](https://global.discourse-cdn.com/meta/original/4X/d/8/a/d8a815649b21301c28c64d0a43ab33569373556f.png)

---

<div class="post-metadata">

### Author: ![Heliosurge](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/heliosurge/32/571810_2.png) [@Heliosurge](https://meta.discourse.org/u/Heliosurge)
#### Post date: [12 באפריל,‏ 2025,‏ 6:55am UTC](https://meta.discourse.org/t/issue-with-cname-record-for-root-domain-naijahub-co-hostname-not-permitted/359757/3 "2025-04-12T06:55:05Z")

</div>

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

 ![The image displays text fields for "Host", "Value," and "Actions," with "Host" partially visible, marked by a red waveform, "Value" entered with a hyphen, and "Service" blank, while there are checkboxes and a delete option next to "Type." (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/b/b/0/bb017e17ae879c675bb11221388d0d1c7da1fdac.png)

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
