Using a custom domain with cloudflare
hi! I'm ready to deploy my project to my domain, and now railway has detected my cname record, but isn't working yet
https://cdn.fl1nt.dev/GAGE1/sukiDEli19.png
I looked at the docs linked and it seems the only special instructions needed for cloudflare are if the domain im using is wildcard but its not, just base domain.
any ideas what is wrong? checked my SSL settings as the doc says too and it is on full so no issues there.
Thanks guys, and sorry if noob question.
46 Replies
Project ID:
0d4077db-2291-4092-a0d4-30f321743c57
0d4077db-2291-4092-a0d4-30f321743c57
well what isn't working specifically?
i think i figured out that it's because CNAME is being put on the root of the domain, adding www. is working, but is it possible to also get the root domain working?
if not it doesnt really matter, www is fine
cloudflare does support cnames at the root level so there should be no problems with that, something might be configured incorrectly, can you show me a screenshot of the domains you have in your service and your DNS setup in cloudflare please?
I have the same issue.
Let's say I own domain.com and am hosting on Hostgator where I can't add a CNAME with @. www.domain.com shows with green tick in Railway but domain.com shows "waiting for DNS update". DNS settings in Cloudflare: - Removes A record for domain.com - Added CNAME with domain.com pointing to mydomain.railway.app - Added CNAME with www.domain.com pointing to mydomain.railway.app Note: CNAME records are not proxied yet.
SSL/TLS in Cloudflare is set to Full. I set this up over 72 hours ago. The www.domain.com in Railway resolved in minutes. The domain.com in Railway is still waiting. Any idea what I could do to resolve this please? I assume it's the same issue.
Let's say I own domain.com and am hosting on Hostgator where I can't add a CNAME with @. www.domain.com shows with green tick in Railway but domain.com shows "waiting for DNS update". DNS settings in Cloudflare: - Removes A record for domain.com - Added CNAME with domain.com pointing to mydomain.railway.app - Added CNAME with www.domain.com pointing to mydomain.railway.app Note: CNAME records are not proxied yet.
SSL/TLS in Cloudflare is set to Full. I set this up over 72 hours ago. The www.domain.com in Railway resolved in minutes. The domain.com in Railway is still waiting. Any idea what I could do to resolve this please? I assume it's the same issue.
can you send the same stuff i asked flint for?
I have attached the relevant sections. I hope this is sufficient?
is the censorship absolutely necessary?
id like to be able to dig those domains
wuther.au
hmmm thats very odd keith, the root domain is just an A value for a gcp ip
and i even get that when querying cloudflares own dns resolvers
i just disabled proxying, which is fine honestly
they have it disabled already
Thanks Brody. I was going to host on GCP and may have set the A record accordingly.
Actually it's not this. The A record IP address is my Hostgator account.
but has disabling the proxy worked for you flint?
yea
connection still seems proxied despite that but whatever it works all that matters lmfao
well railway has a router and proxy
does Hostgator use the exact same gcp datacenter as railway? (us-west1)
because that ip is a google ip
connections didnt seem proxied when i was using a railway supplied domain
but its besides the point. my issue is resolved.
I'm not sure but do recall that Hostgator uses GCP; just not sure which data centre.
how long ago did you setup the dns in cloudflare?
About 40 hours ago.
what does the little i say?
CNAME records normally can not be on the zone apex. We use CNAME flattening to make it possible. Learn more.
okay thats fine
I noticed when searching wuther.au in dig that clicking CNAME has "Record not found".
yes thats the strange thing, its just an A record
There's no A record with that IP address in either Cloudflare or Hostgator DNS settings???
i know
i am stumped
these are the same as the ones youve set in hostigator?
The nameservers are set in my domain provider and yes, that's what I have set.
i really dont know what to tell you at this point
I appreciate your help. Perhaps I just need to wait?
it shouldn't really take 40 hours
I do have these messages in Cloudflare now...
messages?
two checkmarks
Do the check marks mean it is done?
it means youve completed that stuff in cloudflares dashboard
OK. Thanks.
maybe the team can push through a ssl cert for you
wanna open a new thread for that? if i flag the team here the information from the original post will get sent to them instead of yours
OK, will do. I'm new here so will do what I can...
new post
Thanks. It is done.
give percy the project id please
Done.