Add custom domain in railway

spotlyapp
HOBBY

a year ago

Hello.

I want to connect my own domain which is in GoDaddy, the railway service is telling me that i need to add a CNAME record with @ as origin pointing to the railway service.
The problem here is that i am not allowed to add this type of origin ( @ ) because i already have that and CNAME must not be duplicated.

Could you please put me in the right direction to setup the DNS records correctly? can i add another type of record to connect with my app in railway?

Solved

8 Replies

a year ago

GoDaddy does not support CNAMEs at the root, you would need to use Cloudflare's nameservers -

https://developers.cloudflare.com/dns/zone-setups/full-setup/setup/


spotlyapp
HOBBY

a year ago

Great, now i can see the custom domain on the application service, but it is not resolving on spotly.la... may be is a record missing? or i need to delete the primary domain ( autogenerated by Railway) ?


spotlyapp
HOBBY

a year ago

the custom domain that we coinfigured, is https://spotly.la/ but it is not resolving



spotlyapp
HOBBY

a year ago

Thanks, that worked.

But i cant make www.spotly.la works. i tried to add that domain too on railway but part of the application does not work.

So i tried to create a cname with www to spotly.la but is still resolving some error page on railway.

How should i configura that?


jaseltapia
PRO

a year ago

I had the same issue. I transfered the domaim from godaddy to hostinger and problem solved. Registered both mydomain.com and www.mydomain.com in a minute. If you do that, be careful while doing the transfer though. It's fairly easy, but can be denied for small details. Good luck.


a year ago

Hostinger also does not support root level CNAMEs.

You would need to use Cloudflare's nameservers.


spotlyapp
HOBBY

a year ago

thank you everybody, i solved the problem adding a cname record pointing www to spotly.la on CloudFlare. now both, root domain and www points in the right way to the application. Thanks again!!!


Status changed to Solved brody about 1 year ago