Connecting CF Worker to CF DNS

I have a working CF worker (tested and does what it should - which is redirect inbound requests). I went into the triggers > routes and set up a blanket catch all for my domain *.example.com/*, which I believe catches all root and subdomain requests, which is what I want. I think all of this is set up correctly.

When I read cloudflare docs, it makes it sound as is the worker just kind of picks up all the traffic from a domain, so long as the domain nameservers are with CF (which mine are with CF). I deleted all of my old DNS info and saw guidance to put in a dummy A record that gets proxied through CF. This doesn’t really make sense to me but I did it.

Not really sure how to debug this magic part where CF just somehow recognizes the domain and does the routing for me. Am I missing something here?

FWIW, this appears to be a change in the CF docs. I think this functionality was traditionally covered by ‘Routes’ exclusively but now there is another section under ‘Triggers’ for workers that separately allows ‘Custom Domains’. If you use Custom Domains, this CF makes the DNS records for you automatically - that was the missing piece to this puzzle.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.