Previous method with Godaddy doesn't work anymore?
flabroo
HOBBYOP

2 years ago

Hello! Need a bit of guidance on adding custom domains bought on GoDaddy.

Previously, I made it work by adding two records on GoDaddy:

  • CNAME, www, railway's provided domain

  • A, @, remote address of railways's provided domain

Recently, the domain expired, went to renew it and realized my website wasn't showing anymore. The remote address changed and I updated it. Unfortunately, it doesn't seem to work anymore.

Does the above method still work? Am I forced to use Cloudflare now?

3 Replies

dev
MODERATOR

2 years ago

That method is very bad, Railway deployments use dynamic IPs, meaning these IPs change over time which can break your website when the IP is hardcoded. The only way you'd get this to work would be to use a different nameserver that does support root level CNAMEs like Cloudflare.

Note that this isn't due to a limitation on Railway but rather a limitiation on GoDaddy (and most other domain name servers). I'd honestly recommend using Namecheap to buy domains as it supports root level CNAMEs natively if you don't like using Cloudflare as a nameserver, but for now yes, the best thing to do would be to use Cloudflare


flabroo
HOBBYOP

2 years ago

Thank you good sir for your input. Am initializing a Cloudflare account now.


dev
MODERATOR

2 years ago

Awesome, and no problem :)


Loading...