Custom Domain Dns

AnonymousTRIAL

5 months ago

I changed the DNS 18 hours ago and I'm linking my custom domain with Cloudflare, but the CNAME provided by Railway has still not been updated. Should I wait?

Solved

20 Replies

5 months ago

Is it possible for you to share the domain you're trying to link with Railway (including the subdomain) ?
Also, you're using Cloudflare as a nameserver, correct?


AnonymousTRIAL

5 months ago

This is my domain,Yes I use Cloudflare nameservers.

https://freevoicegenerator.pro/

I do not have any subdomain,My ssl in Full mode.


AnonymousTRIAL

5 months ago

Is it possible for you to share the domain you're trying to link with Railway (including the subdomain) ?
Also, you're using Cloudflare as a nameserver, correct?

This is my domain,Yes I use Cloudflare nameservers.

https://freevoicegenerator.pro/

I do not have any subdomain,My ssl in Full mode.


AnonymousTRIAL

5 months ago

I use dns checker cname is still not showing


5 months ago

Thank you, could you show a screenshot of your Cloudflare DNS settings and the Railway custom domain status?


AnonymousTRIAL

5 months ago

Thank you, could you show a screenshot of your Cloudflare DNS settings and the Railway custom domain status?

Yes,My friend here it is.

Attachments


AnonymousTRIAL

5 months ago

Thank you, could you show a screenshot of your Cloudflare DNS settings and the Railway custom domain status?

And here custome domain status

Attachments


5 months ago

Your setup looks good to me, I believe the issue is at the application level

Could you check this page and make sure you align with the instructions there?
https://docs.railway.com/guides/fixing-common-errors#application-failed-to-respond


AnonymousTRIAL

5 months ago

Your setup looks good to me, I believe the issue is at the application level

Could you check this page and make sure you align with the instructions there?
https://docs.railway.com/guides/fixing-common-errors#application-failed-to-respond

All these steps I did them,I believe that I should wait maybe for 2 days or 3 days to update dns what is your opinion ?


AnonymousTRIAL

5 months ago

Your setup looks good to me, I believe the issue is at the application level

Could you check this page and make sure you align with the instructions there?
https://docs.railway.com/guides/fixing-common-errors#application-failed-to-respond

Because I put my site in Dns checker website and CNAME it is still not showing what is your opinion ?


5 months ago

Since you're proxying through Cloudflare, the CNAME wouldn't show up on DNS checkers, instead from a DNS checker's perspective your domain only points to Cloudflare servers

I don't think this is a DNS issue, Railway seems to have successfully picked up your domain and is connecting to it, but it's returning a 502 for some reason

If you've followed all the steps on that page then I'm honestly at a loss for what the problem could be


AnonymousTRIAL

5 months ago

Your setup looks good to me, I believe the issue is at the application level

Could you check this page and make sure you align with the instructions there?
https://docs.railway.com/guides/fixing-common-errors#application-failed-to-respond

Oh maybe beacause i use port 80 in my code !! what is the right port ?!


5 months ago

You should be listening on the PORT environment variable, Railway injects that environment variable into your project at runtime


AnonymousTRIAL

5 months ago

You should be listening on the PORT environment variable, Railway injects that environment variable into your project at runtime


AnonymousTRIAL

5 months ago

You should be listening on the PORT environment variable, Railway injects that environment variable into your project at runtime

Then shoud I edit my port in python code to listen to the port of Railway ?


5 months ago

exactly, you need to listen on the PORT environment variable; alternatively you can just set the PORT environment variable to 80 in the service variables tab but I'd recommend listening on the PORT environment variable anyway because that's a cleaner solution


AnonymousTRIAL

5 months ago

exactly, you need to listen on the PORT environment variable; alternatively you can just set the PORT environment variable to 80 in the service variables tab but I'd recommend listening on the PORT environment variable anyway because that's a cleaner solution

bro I edited it,But before put new CNAME now is normal the my cname when Railway give it to me when i open it on my browser be like this picture ? this is my new cname after editing and now i will put my custom domain again and try again

Attachments


5 months ago

So you changed the CNAME and you're now seeing that when you're visiting the domain?


AnonymousTRIAL

5 months ago

So you changed the CNAME and you're now seeing that when you're visiting the domain?

it worked now thx


5 months ago

Awesome! Glad you got it working


Status changed to Solved dev 5 months ago