Use Cloudflare Worker as DNS proxy

Hello there,

  1. I’ld like to have a subdomain like https://dns.hosting.com.
  2. Ask domain owners to redirect to it using a CNAME.
    For ex, “CNAME - about - dns.hosting[dot]com” on a potential http//:someone[dot]com.
  3. When someone visits https://about.someone.com I’ld like to process the page through the dns.hosting.com

Can I do that with Cloudflare Workers?
Any other tip to do that?

Thanks!

Yes, to answer in a single word.

  1. sub.workers.dev site
  2. CNAME your domain to it.
  3. Have others CNAME to your domain ::
  • or they can CNAME directly to your worker site.

Try it yourself - CNAME to https://mother-earth.antistate.ch/ which is a workers site.

The workers.dev address is https://ancient-cloud-a1ac.why.workers.dev/

I just removed the Hurricane ASN firewall rule.