CNAME not working after changing nameserver


I have a domain registered, and have changed the nameserver to Cloudflare with the following guide: . The DNSSEC is active and I see Web Traffic in the domain settings, so I think I’ve done so successfully.

Next I wanted to add a CNAME that points to a website I’ve made under the following URL: . This however is not working. doesn’t point to any website and returns an error in the browser.

The record would look like this

What I expected to happen:
I expected to be able to visit my website with the URL from my domain

Am I missing something? What am I supposed to do to make this work?

Have you added a custom domain name in railway?

Welcome to the Cloudflare Community. :logodrop:

You appear to to have skipped over setting up the hostname in Railway. When I request from the server at using curl it returns the following error:

* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN, server accepted to use h2
* Server certificate:
*  subject: CN=*
*  start date: Feb  8 18:16:04 2023 GMT
*  expire date: May  9 18:16:03 2023 GMT
*  subjectAltName does not match
* SSL: no alternative certificate subject name matches target host name ''

Oh I see. It’s solved now. I actually did add the custom domain to my railway project. But since the orange cloud proxy on the CNAME was active, I also had to change the SSL/TSL of my domain to “full”.

Thank you for your reply.

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.