R
Railway15mo ago
macwilko

CNAME vs ALIAS

My DNS provider doesn't allow CNAME for the @ root of the domain, only ALIAS. Can I use ALIAS?
Solution:
sounds basically like what cloudflare does to allow cnames at the root
Jump to solution
13 Replies
Percy
Percy15mo ago
Project ID: d1c85c02-8ca5-43c3-adc6-4a24cb066e33
macwilko
macwilko15mo ago
d1c85c02-8ca5-43c3-adc6-4a24cb066e33
vimo
vimo15mo ago
Technically, you can as CNAME and Alias records achieve the same result. But I don't think railway has an option to choose anything other than CNAME to verify. I would suggest you a DNS proxy like Cloudlfare for your domain. Its free and quick to setup.
macwilko
macwilko15mo ago
I don’t want to use Cloudflare ideally 💀 Previously was working fine with ALIAS Has something changed with Railway domains? It seems reachable But I don’t know for sure…
vimo
vimo15mo ago
oh if it used to, then try it. it might resolve then.
macwilko
macwilko15mo ago
I use DNSimple to manage the domain by an API There’s some things I’ll be doing soon to separate tenants in the api by domain name
vimo
vimo15mo ago
I am very little knowledge about multitenancy, but wouldn't each domain have its own DNS records accessible through the API? so you can assign services based on the unique domain name anyway, isn't it?
macwilko
macwilko15mo ago
Yeah I do a bunch of stuff for like mail forwarding etc, DNSimple is really good for a programmable interface for DNS I’m happy not to use Cloudflare for the moment
vimo
vimo15mo ago
I had not heard of it before, looks cool and much simpler to manage.
macwilko
macwilko15mo ago
Yeah 🚀
Brody
Brody15mo ago
as I understand it, an alias record will resolve the cname address once, so as long as the IP address for that cname record doesn't change everything works, but then you push a code change, you get placed on a different box, your IP changes, then the IP your domain points to is incorrect and everything breaks just read this https://support.dnsimple.com/articles/alias-record/ it looks like, unlike other DNS providers, dns simple will resolve the record dynamically, so it should work by all means
macwilko
macwilko15mo ago
@Brody you're a legend thankyou
Solution
Brody
Brody15mo ago
sounds basically like what cloudflare does to allow cnames at the root
Want results from more Discord servers?
Add your server