R
Railwayβ€’3mo ago
Tedros

Custom domain DNS record

I just purchased a domain and I am adding it within my railway deployment. The problem is that it wants me to add a CNAME with the value of '@' but I cannot do that as it says I need to enter a valid name like "www" or "mail". I changed the name to "railway" in the DNS records (it fails with 'www' as well for some reason) but i'm not sure if it will even be detected. Does the exact name not matter, or am I required to use the Name of '@' ? I have a feeling my railway deployment won't recognize the record since I can't add the name specified. Any suggestions?
No description
No description
Solution:
My guess is that your DNS provider does not support root level subdomains, that is what @ represents, my recommendation would be to use Cloudflare as a nameserver instead
Jump to solution
28 Replies
Percy
Percyβ€’3mo ago
Project ID: ba57bf2a-26c5-46ca-a9b1-8efc01fa23ab
Tedros
Tedrosβ€’3mo ago
ba57bf2a-26c5-46ca-a9b1-8efc01fa23ab
Solution
Fragly
Fraglyβ€’3mo ago
My guess is that your DNS provider does not support root level subdomains, that is what @ represents, my recommendation would be to use Cloudflare as a nameserver instead
Fragly
Fraglyβ€’3mo ago
I have a pretty in depth tutorial on how to do that here: https://discord.com/channels/713503345364697088/1184564652898779256/1184566739539873803
Tedros
Tedrosβ€’3mo ago
even in cloudfare it says i can't add cname with root name because it already exists, that does not exist though
Fragly
Fraglyβ€’3mo ago
I don't think it displays as @ on cloudflare, check for a domain that has your domain name as the record and remove it
Tedros
Tedrosβ€’3mo ago
I ported my domain in, switched the nameservers to cloudfare provided ones, but both in cloudfare and go daddy, i can't add the records provided by railway idk why ok one sec
Tedros
Tedrosβ€’3mo ago
removed the one with my domain name, added the one provided by railway and it just gives me this
No description
Tedros
Tedrosβ€’3mo ago
there's no record with my domain name in it now, math aint mathing on this one lol
Fragly
Fraglyβ€’3mo ago
mind sending me a screenshot of your DNS records?
Tedros
Tedrosβ€’3mo ago
it doesn't let me remove the one with my domain name in godaddy, in cloudfare when i remove it, i still get the same error when adding the railway one afterword
No description
Tedros
Tedrosβ€’3mo ago
removed the CNAME with my domain name and it fails when adding root record with railway info. did you mean to remove the A types or CNAME?
No description
Fragly
Fraglyβ€’3mo ago
these need to be removed
No description
Tedros
Tedrosβ€’3mo ago
ah gotcha
Fragly
Fraglyβ€’3mo ago
this too
No description
Tedros
Tedrosβ€’3mo ago
ah nice yeah that did the trick
Fragly
Fraglyβ€’3mo ago
awesome!!
Tedros
Tedrosβ€’3mo ago
i can't delete any records in go daddy lol
No description
Fragly
Fraglyβ€’3mo ago
yea makes sense, it's no problem
Tedros
Tedrosβ€’3mo ago
okay so at this point railway should recognize it soon?
Fragly
Fraglyβ€’3mo ago
yea, just give it a few minutes and it should be ready
Tedros
Tedrosβ€’3mo ago
domain is purchased, wiating on cloudfare to verify ownership though sweet, thank you
Fragly
Fraglyβ€’3mo ago
happy to help πŸ™‚
Tedros
Tedrosβ€’3mo ago
sweet!! the page doesn't actually load of course but i figure it needs a few more minutes
No description
No description
Tedros
Tedrosβ€’3mo ago
maybe because of the redirect settings i did on cloudfare i take that back lol, it switched back to the "waiting for DNS update" status. i think i'm going to step away for liek 20 minutes and let it try to do it's thing
Fragly
Fraglyβ€’3mo ago
make sure you have your TLS/SSL config set to full in cloudflare
Tedros
Tedrosβ€’3mo ago
that did it sweet thanks so much!! you're the goat
Fragly
Fraglyβ€’3mo ago
no problem at all :D