R
Railway•3y ago
guess_wh0

How to use a custom domain

I know of those docs (https://docs.railway.app/deploy/exposing-your-app), but I've never done something like this before, so I'm not sure what to do. Am I required to host my domain somewhere else and then somehow link it to railway?
13 Replies
nebula
nebula•3y ago
you add a CNAME record pointing to the railway subdomain
guess_wh0
guess_wh0OP•3y ago
I'm sorry, but what does that mean and how do I do it? Also, what do you mean subdomain? I'd like to use a "regular" domain such as abcdefg.com.
nebula
nebula•3y ago
have you bought a domain yet
guess_wh0
guess_wh0OP•3y ago
No Can I do this through railway or do I have to go somewhere else and then link it?
nebula
nebula•3y ago
you have to buy a domain through a domain registrar you can find a good price using https://tld-list.com and for actually buying one i recommend namecheap or porkbun or cloudflare domains
guess_wh0
guess_wh0OP•3y ago
Thank you, I'll take a look
guess_wh0
guess_wh0OP•3y ago
So if I have this settings-window on porkbun...
guess_wh0
guess_wh0OP•3y ago
What do I set those fields to? My initial theory is: - Leave host blank - Answer: The Railway URL?
nebula
nebula•3y ago
yep but remove the https:// from the beginning
guess_wh0
guess_wh0OP•3y ago
Interesting System!
guess_wh0
guess_wh0OP•3y ago
Do you have an idea what to do about this error? Any idea how "ALIAS - CNAME flattening record" differs from the option I tried?
nebula
nebula•3y ago
yeah you should use cname flattening
guess_wh0
guess_wh0OP•3y ago
Seems to have worked, thanks a lot! 🙂
Want results from more Discord servers?
Add your server