2 months ago
i have the same issue - i setup the @ cname at my dns provider to what railway provided while connecting my custom domain and railways hasnt recognized yet. any help ?
Pinned Solution
2 months ago
Hey, can you mark this close, if it's sorted?
Thanks!
21 Replies
2 months ago
Did you set @ and www to the CNAME record provided by Railway?
If so, and it still doesn't work, I would suggest migrating to Cloudflare DNS.
0x5b62656e5d
Did you set @ and www to the CNAME record provided by Railway?If so, and it still doesn't work, I would suggest migrating to Cloudflare DNS.
2 months ago
i did ... at my hostinger account .. nothing postiive yet. Also i tried cloudflare and it cant @ root because its alredy pointing to my real domain and its telling it cant add railway as its root
jpchandru
i did ... at my hostinger account .. nothing postiive yet. Also i tried cloudflare and it cant @ root because its alredy pointing to my real domain and its telling it cant add railway as its root
2 months ago
Can you elaborate what you meant by “pointing to my real domain”?
2 months ago
Can you share what exactly you’re running into?
If you’re hosting on Railway with a custom domain you need to add bothyoursite.com and www.yoursite.com in Railway.
If your DNS provider doesnt support CNAMEs at the root domain (godaddy is a common example), the easiest fix is to move DNS to Cloudflare.
After that, point both @ and www to the Railway-provided domain in Cloudflare DNS. Railway will then detect both hostnames and automatically issue TLS certs.
2 months ago
You can’t have conflicting DNS records. The only two records your @ and www should be pointing to is a CNAME record provided by Railway.
And as mentioned above, I would recommend using Cloudflare’s DNS. Might save you the headache.
2 months ago
my real domain is planmybuy.com bouight at hostinger. I just moved the DNS config from hostinger to cloudflare. However at cloudflare i added my customdomain as planmybuy.com and then went to cloudflare settings to add @ and www into cname. Im able to add cname with www to railway provided url but it doesnt accept @ in cname because it tells that there is alrady a record having A, AAA etc.
2 months ago
jpchandru
here is what i have : and my hostinger points to cloudflare DNS nameservers:and here is teh error i get while add/edit @ at cname in cloudflare
2 months ago
You’ll need to remove the A record then.
2 months ago
2 months ago
2 months ago
railway is giving you record for CNAME @ (for planmybuy.com)
Add this CNAME record as it is in cloudfare (currently you have added this cname as www, and not @)
So delete the existing record in cloudfare (CNAME, www, hjwv....)
2 months ago
and then to also support www.planmybuy.com, add another domain in railway, with www....
Railway will give you a cname record with name (www) and a different value,
add it to your cloudfare dns as it is
heimdall
and then to also support www.planmybuy.com, add another domain in railway, with www....Railway will give you a cname record with name (www) and a different value,add it to your cloudfare dns as it is
2 months ago
OP already did lol...
jpchandru
ok deleted the A record at cloudflare .. my railways is till trying to detect
2 months ago
I would give it a lil while. As noted under the popup, DNS takes about a day or two to fully propagate.
heimdall
and then to also support www.planmybuy.com, add another domain in railway, with www....Railway will give you a cname record with name (www) and a different value,add it to your cloudfare dns as it is
2 months ago
ok, i did add CNAME already at @ with railway provided name into cloudflare but i did not create www in railway yet as i need to be paid member to dd more than one custom domain. Let me add that too by becoming paid member and ad it to cloudflare. Will update shortly.
jpchandru
ok, i did add CNAME already at @ with railway provided name into cloudflare but i did not create www in railway yet as i need to be paid member to dd more than one custom domain. Let me add that too by becoming paid member and ad it to cloudflare. Will update shortly.
2 months ago
looks like it worked after few mins of adding www as well. Thanks guys for helping me out today. I got my site live although its still propagating for next few days. Thanks again. Great community.
jpchandru
Its up and running !!
2 months ago
Hey, can you mark this close, if it's sorted?
Thanks!
Status changed to Solved noahd • about 2 months ago

