R
Railway9mo 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
Percy9mo ago
Project ID: N/A
pandas
pandas9mo ago
N/A
Fragly
Fragly9mo ago
You can use a cloudflare nameserver to add a cname to the root
Brody
Brody9mo 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
pandas9mo 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
Brody9mo ago
do you currently have a root cname set?
pandas
pandas9mo 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
Brody9mo ago
seems more like an issue with how namecheap is doing things, or an issue the dns lookup tool you use
pandas
pandas9mo 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
Brody9mo 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
pandas9mo ago
Thanks I'll look into that as well