R
Railway13mo ago
pandas

Domain Management CNAME TXT Records

Hi, Currently have CNAME host www value pointed to railway app Which works fine for www.example.com but example.com is dead end What is recommended way adding example.com (apex domain @) as well because if we add CNAME to apex domain @ TXT records won't resolve and it causes issues I've seen a solution with nginx and ALIAS record, what is recommended? Many thanks
Solution:
you can use cloudflare to set a root level cname, keep proxying on, this way the root level is set to a single A type and cloudflare will proxy the requests to the cname
Jump to solution
11 Replies
Percy
Percy13mo ago
Project ID: N/A
pandas
pandasOP13mo ago
N/A
Fragly
Fragly13mo ago
You can use a cloudflare nameserver to add a cname to the root
Brody
Brody13mo ago
who is your current nameservers.
if we add CNAME to apex domain @ TXT records won't resolve and it causes issues
can you provide an example of this, ive never had this be a problem
pandas
pandasOP13mo ago
Using namecheap Type Host Value CNAME @ id.up.railway.app TXT @ google-site-verification TXT is not resolved and can't be found Only way TXT is resolved is using CNAME as www, it's pretty common issue That brings another problems is the apex domain itself @ won't point to anything So has to be resolved with redirects or ALIASes Looking for what's simplest way of handling this, since most cloud infastructures have their own DNS management
Brody
Brody13mo ago
do you currently have a root cname set?
pandas
pandasOP13mo ago
Just tested with ALIAS and @ host is no longer under HTTPS browser throws certificate warning and once you pass warning it goes to railway error page "Nothing here... yet" CNAME root is empty because TXT records won't resolve
Brody
Brody13mo ago
seems more like an issue with how namecheap is doing things, or an issue the dns lookup tool you use
pandas
pandasOP13mo ago
So https://toolbox.googleapps.com/apps/dig/#TXT/ tool is an issue? lol Thanks for help, I'll look into custom nginx config
Solution
Brody
Brody13mo ago
you can use cloudflare to set a root level cname, keep proxying on, this way the root level is set to a single A type and cloudflare will proxy the requests to the cname
pandas
pandasOP13mo ago
Thanks I'll look into that as well
Want results from more Discord servers?
Add your server