Connecting a domain

f-suite
PROOP

24 days ago

Hello! I'm trying to connect my domain onlineonelproff.com to the Railway project (previously the domain was connected to another railway hosting). Domains purchased on https://my.a2hosting.com . Connecting a subdomain www.onlineonelproff.com the CNAME works correctly, but the root domain (onlineonelproff.com ) when adding writes: "not available." I'm following your instructions: I added the domain (www) in the Railway project settings. On the a2hosting side, I added a CNAME for www on ar2e0fmj.up.railway.app. I tried to use A-records for the root domain, but I don't know the correct IP for your service. How do I connect the root domain to Railway correctly? Do I need to change the A-records of the root domain in order for the root domain to work with www?

$10 Bounty

10 Replies

Railway
BOT

24 days ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


24 days 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 brody 24 days ago


24 days ago

Railway relies on root level CNAMEs for assigning root domains, unfortunately root level CNAMEs is very rarely supported among domain name registrars and domain name servers. For your case you'll want to use Cloudflare as a DNS, you don't need to move to Cloudflare as a registrar, just the DNS. The reason I recommend this is because Cloudflare does support root level CNAMEs and so you'll be able to add the root domain to Railway


dev

Railway relies on root level CNAMEs for assigning root domains, unfortunately root level CNAMEs is very rarely supported among domain name registrars and domain name servers. For your case you'll want to use Cloudflare as a DNS, you don't need to move to Cloudflare as a registrar, just the DNS. The reason I recommend this is because Cloudflare does support root level CNAMEs and so you'll be able to add the root domain to Railway

f-suite
PROOP

22 days ago

I did as you said, moved everything to Cloudflare. I added a CNAME for the root domain (the same as for www), but when adding the root domain to railway, it still writes: "not available". NS records for the domain have been changed to Cloudflare.

Attachments


22 days ago

Your www and @ wouldnt use the same CNAME value, where did you get that value from for your root domain?

You're going to want to remove onlineonelproff.com from your Railway settings and from your Cloudflare DNS and then add it back to Railway and then use the value Railway provides for your CNAME value on Cloudflare


dev

Your www and @ wouldnt use the same CNAME value, where did you get that value from for your root domain?You're going to want to remove onlineonelproff.com from your Railway settings and from your Cloudflare DNS and then add it back to Railway and then use the value Railway provides for your CNAME value on Cloudflare

f-suite
PROOP

22 days ago

The main problem is that I can't add the root in the settings.


22 days ago

do you perhaps have it added on a different service? perhaps you deleted a project recently that had that domain on one of the services? Railway might say not available if the domain is already added somewhere


dev

do you perhaps have it added on a different service? perhaps you deleted a project recently that had that domain on one of the services? Railway might say not available if the domain is already added somewhere

f-suite
PROOP

19 days ago

That is, if the domain is added to another Railway project, but dns records no longer lead to it, I still won't be able to add it to my project?


f-suite

That is, if the domain is added to another Railway project, but dns records no longer lead to it, I still won't be able to add it to my project?

18 days ago

Correct, i believe if it exists on any other service then your domain will be marked as in-use and cannot be used by any other service. If you have used the domain on a previous service before then just make sure to remove it from that service


10 days ago

Did you ever get it working?


9 days ago

Have you resolved your issue?

If not, then I can help you with your DNS zones and redirects for "www" subdomain.


Loading...
Connecting a domain - Railway Help Station