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
Project ID:
7bd4fa01-dd4d-4988-8c50-4ae01902a0e5
7bd4fa01-dd4d-4988-8c50-4ae01902a0e5
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
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.Netim doesn’t supprt root level cnames, you have to use cloudflares nameservers
@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?
nope just use cloudflare's nameservers
https://developers.cloudflare.com/dns/zone-setups/full-setup/setup/
@Brody Okay, will go through this now. Appreciate the help
@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?
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
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 loldo you have
www.mydomain.fi
in railwayI 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
do you have custom domains on other projects?
No I only have a custom domain for this one project
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?
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
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?
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
i will be talking to the team about this
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
so you are only using a single custom domain in total across all services and projects?
yes
yeah thats no good
Ya I just sanity checked everything to make sure again. Only using 1 total custom domain between all two of my projects
sent a message in our chat and im waiting for a reply
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.unfortunately the team hasn't gotten back to me
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
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
Alright, I'll just get the pro plan
Thanks for looking into this
no problem!