Setting custom domain with Cloudflare does not work
barmil
PROOP

a month ago

When I try to set custom domain to my service (service ID da29b559-9bcf-4274-8ac2-6bf2d722f2a1) I get the following cluodflare error:

Cloudflare cannot proceed with applying new DNS records for Railway because this URL is not verified.

I also tried to set it manually but I keep getting DNS_PROBE_FINISHED_NXDOMAIN error.

I attached a screen recording

Please advise.

Attachments

Solved$20 Bounty

Pinned Solution

I'm able to access the /health route just fine. Try clearing your local DNS cache or using 1.1.1.1 as your machine's DNS.

38911.png

Attachments

3 Replies

Railway
BOT

a month ago

This thread has been opened as a public bounty so the community can help solve it. The thread and any further activity are now visible to everyone.

Status changed to Open Railway about 1 month ago


spjoes
HOBBY

a month ago

Hey! I believe the one-click Cloudflare setup fails because of a bug in Cloudflare's Domain Connect flow (the "URL is not verified" error hits other providers too, not just Railway). Skip it and just add the records manually.

The NXDOMAIN happens because neither record actually exists in your zone yet. I checked diggiest-staging.com directly and it's correctly on Cloudflare, but api.diggiest-staging.com and _railway-verify.api.diggiest-staging.com both return NXDOMAIN. The hostname doesn't resolve because nothing was created.

The fix is, in Cloudflare, go to DNS → Records → Add record, and create both


TYPE: CNAME

Name: api

Value: qyomxfu8.up.railway.app (i got this from your screen recording)

Proxy: DNS only (grey cloud)

TYPE: TXT

Name: _railway-verify.api

Value: "railway-verify=..." (full value from the Railway panel)

Proxy: Not Applicable

Save both, wait a few minutes. Railway should verify and provision automatically, and the NXDOMAIN clears once the CNAME propagates.

I know you can check in a terminal with nslookup api.diggiest-staging.com after a bit.


barmil
PROOP

a month ago

I tried to set it up manually and even though I see green cloud on railway, which I read as an indication that the connection is ready, I get the same error (DNS_PROBE_FINISHED_NXDOMAIN on the browser and server can't find api.diggiest-staging.com: NXDOMAIN by nslookup)

This is after I waited for 10 minutes.

Screenshot 2026-07-11 at 10.30.58.png

Screenshot 2026-07-11 at 10.31.29.png


I'm able to access the /health route just fine. Try clearing your local DNS cache or using 1.1.1.1 as your machine's DNS.

38911.png

Attachments


Status changed to Solved 0x5b62656e5d about 1 month ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...