2 months ago
Hi, I'd like to set an A record for my domain.
Example:
www.domain.com = using your CNAME xxx.up.railway.app
domain.com = using A record 66.33.22.xx
For now, I have setup both using your CNAME, but would like #2 to be an A record with static IP instead.
May I ask how should I configure this differently to obtain an IP address for A record?
Thanks.
6 Replies
2 months ago
Hey there! We've found the following might help you get unblocked faster:
🧵 Adding a custom domain URL for the Node App hosted on Railway
📚 Deploy Static Sites with Zero Configuration and Custom Domains
If you find the answer from one of these, please let us know by solving the thread!
2 months 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 • about 2 months ago
2 months ago
Unfortunately these threads did not provide a solution to my issue.
And for context, we noticed another customer of yours managed to set a CNAME for www and A record for the apex. See screenshot.
Pls advise how should the configuration be to achieve this?
Attachments
a month ago
Hi, any advice or updates Brody?
a month ago
im pretty sure that railway doesn’t provide a static IP for A records (iirc static IPs can be enabled but not for what youre looking for) all custom domains must use CNAME records pointing to your *.up.railway.app domain (whatever is given to you by railway). if your DNS provider needs an A record for the root domain, set an ALIAS or ANAME record that resolve's to railway's CNAME target
yeeet
im pretty sure that railway doesn’t provide a static IP for A records (iirc static IPs can be enabled but not for what youre looking for) all custom domains must use CNAME records pointing to your *.up.railway.app domain (whatever is given to you by railway). if your DNS provider needs an A record for the root domain, set an ALIAS or ANAME record that resolve's to railway's CNAME target
a month ago
but if you refer to the screenshot i attached, that owner had managed to do so... as its A record was resolving to a static IP while its CNAME was pointing to *up.railway.app. I'm trying to replicate what that person did.