You can also do this on the same network which runs 1.1.1.1. Cloudflare (where I work) allows you to deploy your own serverless functions for free [1] on the same machines which serve DNS traffic, and the Workers can query https://cloudflare-dns.com without a problem.