a month ago
I'm a little confused how I am supposed to point a domain that I registered through Network Solutions to my project on Railway. I have a project called "sunny-victoiry" that has two services in it: a web front-end and backend service. I assume I need to point to the front end but I don't see anything that tells me info like Nameservers, etc that I would need. Is there anyone I can connect with on your end that could help?
thanks!
Chris
5 Replies
a month ago
It looks like I need to use CNAME values. So just to be sure that I am understanding this correctly, is the CNAME value I need to put into my Network Solutions dashboard the URL for the frontend service I am pointing too that was generated by Railway: https://web-production-9e440.up.railway.app/
And then do I also need to add the domain name in the Settings for that Service under Networking? There is a button to add Custom Domains. Will that replace the existing url that Railway assigned or is it in addition? I'm using that other url in the application so it would be easier to keep it in addition if possible.
thanks!
chris
a month ago
This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.
Status changed to Open Railway • 29 days ago
a month ago
The right way to do this is to add your domain on the frontend service in Railway under Settings -> Networking ->Custom Domain. after that railway will give you a specific CNAME target to copy and that exact value is what you paste into your DNS provider as the CNAME “points to” value . Adding a custom domain also won’t replace your existing *.up.railway.app address..that railway URL stays active, and the custom domain works alongside it. The only catch is the root domain (yourdomain.com) because DNS typically doesn’t allow a CNAME at the root .... so if your DNS provider doesn’t support CNAME flattening, the simplest setup is to point www.yourdomain.com to Railway via CNAME and then redirect yourdomain.com to www.yourdomain.com.
check these for more infoo
https://docs.railway.com/networking/domains
https://docs.railway.com/networking/public-networking
a month ago
Thanks for the info. I followed those steps however, and its still not resolving to the correct address after almost 24 hours. If I check the domain in incognito mode I get an SSL error warning and when I proceed, I get the following error message:
"The train has not arrived at the station.
Please check your network settings to confirm that your domain has provisioned.
If you are a visitor, please let the owner know you're stuck at the station.
Request ID:
xk7WUd3eSsqCvLcTPvyhXg"
Is there a configuration setting I need to adjust on the Railway side since it seems to be finding its way here?
thanks,
Chris
cjmurphy27
Thanks for the info. I followed those steps however, and its still not resolving to the correct address after almost 24 hours. If I check the domain in incognito mode I get an SSL error warning and when I proceed, I get the following error message:"The train has not arrived at the station.Please check your network settings to confirm that your domain has provisioned.If you are a visitor, please let the owner know you're stuck at the station.Request ID:xk7WUd3eSsqCvLcTPvyhXg"Is there a configuration setting I need to adjust on the Railway side since it seems to be finding its way here?thanks,Chris
a month ago
"train has not arrived” usually happens when the domain isn’t verified/provisioned yet....so the certificate for your hostname hasn’t been issued/attached...btw did you add both yourdomain.com and www.yourdomain.com in custom domains,make sure the domain is attached on the frontend service
https://station.railway.com/questions/the-train-has-not-arrived-at-the-station-3591da9a
a month ago
Thanks! It looks like the easiest way to do it was to just run it through Cloudflare so I got it set up that way. One thing I noticed though is that when you use the automatic button to set it up through cloudflare, it defaults to setting the proxy status to toggle "on" and it seems to need to be off for the SSL certificate to be issued. Appreciate the help.