Adding custom domain as www.example.com but Railway shows CNAME Name as @
matperetti
PROOP

4 months ago

My DNS provider does not support using @ as the CNAME name, nor CNAME records at the apex/root domain. It only allows CNAME records for subdomains like www.

When I add www.mydomain.example as a custom domain in Railway, the DNS instructions still show: Type: CNAME

Name: @

Value: xxxx.up.railway.app

But I was expecting:

Type: CNAME

Name: www

Value: xxxx.up.railway.app

Since my provider cannot create a CNAME with @, I cannot complete the setup. Is this a bug or expected behavior?

7 Replies

I would suggest using Cloudflare's DNS.



Since my provider cannot create a CNAME with @, I cannot complete the setup. Is this a bug or expected behavior?

Some providers just don't support CNAME flattening.


Cloudflare will allow you to use @ for a CNAME record.


matperetti
PROOP

4 months ago

Thanks for the clarification! That makes sense.

Since Registro.br doesn’t support CNAME flattening or @ records, I’ll move the DNS to Cloudflare so I can use the domain with Railway.

Appreciate the help!


maxelzon
HOBBY

3 months ago

Technically, using @ for a CNAME record is not allowed by standard DNS specifications (RFC 1034).

Most DNS providers therefore do not support CNAME records at the root (apex) of a domain.

Are you considering other solutions?


Using Cloudflare’s DNS service is the recommended solution as they support CNAME flattening.


Welcome!

Sign in to your Railway account to join the conversation.

Loading...