Connect Railway with Ionos Domain
franzi-4
PROOP

2 months ago

Hi, I'm hosting my site on Railway and trying to connect my domain from IONOS.

Current setup:

The problem: IONOS doesn't allow CNAME records for the apex domain (@). They only offer "Weiterleitung" (HTTP redirect) as an alternative.

What I've tried:

Question: Should I also add example.com (without www) as a custom domain in Railway even though I can't create the CNAME record that Railway requests? Or is the HTTP redirect-only approach acceptable?

Does Railway provide A records I could use instead of CNAME for the apex domain? Or any other Idea what to do?

Attachments

Solved

1 Replies

Unfortunately, Railway doesn't provide A records—we only support CNAME-based DNS configuration since our infrastructure uses dynamic IPs. So there's no direct way to point your apex domain to Railway when your DNS provider doesn't support CNAME flattening or ALIAS records at the root level.

Your current redirect approach (IONOS redirecting example.comhttps://www.example.com) is a perfectly valid workaround. In this case, you should NOT add example.com as a custom domain in Railway since you can't create the required DNS record—Railway wouldn't be able to verify or serve traffic for it anyway.

The better long-term solution is to switch your DNS management to Cloudflare while keeping your domain registered at IONOS. Cloudflare's free tier automatically handles CNAME flattening at the apex, so you'd just create a CNAME record for @ pointing to your Railway target and it works.

We suggest that you'd change your nameservers at IONOS to point to Cloudflare, then manage all your DNS records there. Here's their setup guide: Full DNS Setup

If you'd rather not switch DNS providers, your redirect setup is totally fine—users hitting example.com will seamlessly end up at www.example.com which Railway serves correctly.


Status changed to Awaiting User Response Railway about 2 months ago


Railway
BOT

a month ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway about 1 month ago


Loading...