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:Jump to 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
11 Replies
Project ID:
N/A
N/A
You can use a cloudflare nameserver to add a cname to the root
who is your current nameservers.
if we add CNAME to apex domain @ TXT records won't resolve and it causes issuescan you provide an example of this, ive never had this be a problem
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
do you currently have a root cname set?
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
seems more like an issue with how namecheap is doing things, or an issue the dns lookup tool you use
So https://toolbox.googleapps.com/apps/dig/#TXT/ tool is an issue? lol
Thanks for help, I'll look into custom nginx config
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
Thanks I'll look into that as well