2 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
2 months ago
I would suggest using Cloudflare's DNS.
2 months ago
2 months ago
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.
2 months ago
Cloudflare will allow you to use @ for a CNAME record.
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!
23 days 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?
23 days ago
Using Cloudflare’s DNS service is the recommended solution as they support CNAME flattening.