Using Cloudflare on IP-less subdomain


#1

Is there a way to enable Workers or Page Rules on a subdomain (or root, for that matter) without having to use a server IP in the DNS entries?

I know I can just put a random one, like 1.1.1.1 or 8.8.8.8, but it would be helpful to have subdomains which resolve to Cloudflare without having nothing actually behind for maybe Workers or even Page Rules (redirects?) without the need to maybe hit someone in case of errors with tons of unwanted traffic.


#2

Use 192.0.2.1 - it is part of a range intended for documentation, is not actually routable and will be accepted for an :orange: record on Cloudflare. There’s an outstanding feature request to create this type of rule without a customer having to specify a value… when/if we do we’ll likely use that same method under the covers to create the address to be forwarded for so that DNS can return a proxied result to the user.


#3

Thanks!