These JSON files can be uploaded to Control D as custom rule folders.
Paste the code from the JS file into a worker at Cloudflare.
- DNS over HTTPS
- Using a Cloudflare worker with a custom domain(s), you can potentially circumvent network blocks preventing you from connecting directly to Control D resolvers.
- Change the hostnames and resolver paths, add/remove IF statements, etc. to suit your needs. For example, on your device, you'd configure
https://resolver2.example.netas your DoH resolver. - The
*.example.nethostnames are the route(s) you've configured at Cloudflare for the worker. Thedohvariable within a given IF statement is the Control D resolver you want that particularexample.nethostname associated with. - The caveat with this is that Control D will see the queries as coming from whatever edge server Cloudflare sees fit to use at the moment. Given that, if you rely on ECS, it will be based upon the Control D resolver that Cloudflare happens to connect to based on which of their edge servers is handling your worker request at the time.