DNS CNAME Update Not Reflecting – Railway Deployment
navedk0201
PROOP

5 months ago

I have updated my DNS as follows:

  • Type: CNAME
  • Host:www
  • Value:xxxxx.xx.railway.app

However, I’m still facing these issues:

  • The domain is not resolving correctly
  • The website is still redirecting to the old destination

My questions:

  1. Is this just DNS propagation delay, and should I wait longer?
  2. Do I also need to add an A record for the root domain?
  3. If an A record is required, how do I find the IP address for Railway, since Railway provides only a .railway.app domain and not a fixed IP?

Additional info:

  • I’ve removed old A records
  • Only a CNAME for www currently exists

What is the correct DNS setup for Railway custom domains?

Thanks in advance for your help

$10 Bounty

1 Replies

You need to add both @ and www records to your DNS provider. Note that some providers do not support CNAME flattening (Using @ as a record), so if that's the case, I would recommend you switch to using Cloudflare's DNS.

Also, Railway does not provide A records for custom domains. You're only given CNAME records to add to your DNS provider if you wish to use custom domains with Railway.


Welcome!

Sign in to your Railway account to join the conversation.

Loading...