R
Railway12mo ago
Kraz

Help with proper domain configuration when using custom domain

Hello, I am currently trying to link my Railway app with a custom domain I bought from Netim but I'm not sure if I configured it properly. When I add my domain to Railway, I am only prompted to enter one CNAME record. I was a bit confused about this so I watched a tutorial that covered how to set up custom Railway domains with Godaddy. The person recommended setting an A record using the Railway app server IP from inspect element/network. This is my current configuration. Record 1 Type: CNAME Name: www.mydomain.fi Target: xxxxxx.up.railway.app Record Summary: www.mydomain.fi IN CNAME xxxxx.up.railway.app Record 2 Type: A Name: mydomain.fi Target: 34.xx.xxx.124 (My railway app server) Record Summary: mydomain.fi IN A 34.xx.xxx.124 It's been over 40 minutes, and my Railway app still says "Waiting for DNS update" for my custom domain. I'm concerned I didn't do something properly. Any help or clarification on if I did anything wrong would be greatly appreciated.
32 Replies
Percy
Percy12mo ago
Project ID: 7bd4fa01-dd4d-4988-8c50-4ae01902a0e5
Kraz
KrazOP12mo ago
7bd4fa01-dd4d-4988-8c50-4ae01902a0e5
Brody
Brody12mo ago
you cant use A types with railway, that tutorial was super wrong and godaddy doesn’t supprt root level cnames, you have to use cloudflares nameservers
Kraz
KrazOP12mo ago
Thanks for clarifying on that, a follow-up questions I'm currently using Netim for my domain hosting. As mentioned, Railway asked me to add one CNAME record with the name @. When I go to add a CNAME record in Netim, and add @ for the name, it tells me it's not a valid subdomain which is where I think my main issue is coming from.
No description
Brody
Brody12mo ago
Netim doesn’t supprt root level cnames, you have to use cloudflares nameservers
Kraz
KrazOP12mo ago
@Brody Shoot that sucks, guess I have to do some research into that. You think it would be easier to just transfer the domain to a host that supports root level cnames?
Brody
Brody12mo ago
Kraz
KrazOP12mo ago
@Brody Okay, will go through this now. Appreciate the help
Kraz
KrazOP12mo ago
@Brody I am now using Cloudflare nameservers. I added my root level CNAME through the Cloudflare dashboard, just wanted to confirm - I shouldn't be using cloudflare proxy for this record, correct?
No description
Brody
Brody12mo ago
please chill with the pings and ping replies its up to use if you use the proxy or not, but read this https://docs.railway.app/deploy/exposing-your-app#provider-specific-instructions
Kraz
KrazOP12mo ago
Hey Brody sorry about the pings I read this over and got it working, at least for mydomain.fi When I do www.mydomain.fi it doesn't work likely because I don't have a record set up for that. Do you have any advice on how to fix this? As you can tell DNS/Nameservers aren't my specialty lol
Brody
Brody12mo ago
do you have www.mydomain.fi in railway
Kraz
KrazOP12mo ago
I don't, I tried adding it but I cannot add more than one custom domain. I upgraded to Hobby plan just to get more custom domains but it never let me add more than that
No description
Brody
Brody12mo ago
do you have custom domains on other projects?
Kraz
KrazOP12mo ago
No I only have a custom domain for this one project
Brody
Brody12mo ago
oh wow, i understand putting a limit on it (i know of people who had hundreds) but a limit of 1 is terrible will talk to the team about this until then, does your current custom domain work?
Kraz
KrazOP12mo ago
Okay thank you, do you think upgrading to their Pro plan will increase the limit? I checked but there wasn't any language about getting an increase with the Pro plan And yes the current custom domain works great! Appreciate the help
Brody
Brody12mo ago
this limit was implemented this morning as far as i can tell, and unless you are a business or will be profiting off your service running on railway you dont need a pro plan so just to be clear, this is the only domain you have on any service in your account?
Kraz
KrazOP12mo ago
Oh wow I got very unlucky trying to deploy to my custom domain today haha, is there anyone I need to reach out to about this limit? The main domain is working but obviously having www.mydomain.fi work is still pretty important
Brody
Brody12mo ago
i will be talking to the team about this
Kraz
KrazOP12mo ago
I have 2 projects right now. Project 1 is just using the Railway generated domain. Project 2 has a railway generated domain + my custom domain
Brody
Brody12mo ago
so you are only using a single custom domain in total across all services and projects?
Kraz
KrazOP12mo ago
yes
Brody
Brody12mo ago
yeah thats no good
Kraz
KrazOP12mo ago
Ya I just sanity checked everything to make sure again. Only using 1 total custom domain between all two of my projects
No description
No description
Brody
Brody12mo ago
sent a message in our chat and im waiting for a reply
Kraz
KrazOP12mo ago
Thank you, really appreciate the help. I'll leave this window open for when they reply Hey Brody, any word on this yet? No worries if not, I just realized that there are some issues that are being caused as a result of not being able to have the second custom domain to add www. support. Probably shouldn't have deployed to prod before testing this but it didn't come to mind that this could be an issue.
Brody
Brody12mo ago
unfortunately the team hasn't gotten back to me
Kraz
KrazOP12mo ago
Okay no worries, appreciate you looking into it for me. I was going to send an email to their support but it seems you need a Pro/Enterprise plan to do so
Brody
Brody12mo ago
you do yeah hey @Kraz - railway now has a limit of 1 domain per service on the hobby plan, their current answer to my enquiry was do the www to non www redirection with your dns provider, or upgrade to pro for 10 custom domains per service
Kraz
KrazOP12mo ago
Alright, I'll just get the pro plan Thanks for looking into this
Brody
Brody12mo ago
no problem!
Want results from more Discord servers?
Add your server