domain without "www"
diascostarodrigo
FREEOP

3 months ago

Hello Railway team,

I am setting up my custom domain on Registro.br to point to my application hosted on Railway.

Currently, I can configure it using a CNAME record (e.g., www.mydomain.com.br). However, I am unable to properly redirect the root domain (without "www", just mydomain.com.br), since Registro.br only allows this through an A record and not with CNAME.

I would like to confirm:

  1. Does Railway provide a fixed IP address that I can use as an A record on Registro.br?

  2. If not, is there an official recommendation or best practice to make the root domain work correctly without "www"?

Looking forward to your response.
Thank you very much!

Best regards,
Rodrigo

$10 Bounty

3 Replies

Railway
BOT

3 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


mardonedias
PRO

3 months ago

Hello.

The registro.br website doesn't allow you to manage DNS. It does allow you to point the DNS to another service.

So, you can create a Cloudflare account and register the domain there, and Cloudflare will provide the DNS for pointing.

After your registro.br domain is pointed to Cloudflare, you can manage DNS through Cloudflare.

tutorial [en]: https://www.youtube.com/watch?v=7hY3gp_-9EU&t=3s

tutorial [pt]: https://www.youtube.com/watch?v=RQB2bnjhAao&t=2s


case
PRO

3 months ago

@diascostarodrigo it looks like Railway offers egress static IPs - but not ingress static IPs (which is what I assume you'd need here).

You could use another DNS provider that offers ALIAS records (like DNSimple) or CNAME Flattening (Cloudflare, as suggested by @mardonedias) - these special (but non-standard) DNS record types will let your apex domain exhibit CNAME behavior.

You could also try using the new HTTPS DNS record type, which supports this - https://developers.cloudflare.com/dns/manage-dns-records/reference/dns-record-types/#svcb-and-https - but not all DNS clients (e.g. those that come with operating systems and web browsers) support it.


Loading...