2 months ago
Hey everyone! I have a Node.js/Express app already running on Railway (with a PostgreSQL DB also on Railway). I'd like to connect my custom domain to it, but the domain is currently registered with another registrar/hosting company.
A couple of questions:
Do I need to transfer the domain registration to Railway, or can I just update the DNS records at my current registrar to point to Railway?
What DNS records does Railway need (CNAME, A record)?
Does Railway handle SSL automatically once the domain is connected?
Any help appreciated!
7 Replies
2 months ago
Hey! You can just point your domain on your current registrar to the Railway provided records.
You will need to add a CNAME and a TXT record in your dns records
2 months ago
2 months ago
Railway handles SSL automatically for you
Thank man for the quick reply.
Thanks for your help! So just to confirm what I need to do—since I'm using the naked domain (without www) as my primary domain, Railway requires CNAME flattening, and my hosting company likely doesn't support it (I saw in the docs that many providers don't either).
So the fix is to move my nameservers to Cloudflare (free), right? I'll go ahead and do that.
Appreciate the guidance!
2 months ago
Yep, cloudflare should do it
2 months ago
let me know if you have any other questions!
Status changed to Solved brody • about 2 months ago