How do I configure Cloudflared to use specific DNS-over-HTTPS (DoH) resolvers provided by Cloudflare on OpenWRT?

Question

Grade: Education Subject: Support
How do I configure Cloudflared to use specific DNS-over-HTTPS (DoH) resolvers provided by Cloudflare on OpenWRT?
Asked by:
112 Viewed 112 Answers

Answer (112)

Best Answer
(313)
The `config.yml` file for Cloudflared needs to be configured to use Cloudflare's DoH endpoints. In `/etc/cloudflared/config.yml`, specify the `proxy-dns` and `proxy-dns-upstream` options with the appropriate DoH URLs (e.g., `https://1.1.1.1/dns-query`). Restart Cloudflared after modifying the configuration file.