Update cloudflared.md

Changed DoH IP addresses to DNS lookups and added new information.

Signed-off-by: Mike <DiskCrasher@users.noreply.github.com>
This commit is contained in:
Mike
2024-06-30 13:39:18 -07:00
committed by GitHub
parent 1aaffe8b7c
commit 67530323b2
+6 -4
View File
@@ -9,12 +9,12 @@ It is worth noting, however, that the upstream DNS-Over-HTTPS provider will stil
## Configuring DNS-Over-HTTPS
Along with releasing their DNS service [1.1.1.1](https://blog.cloudflare.com/announcing-1111/), Cloudflare implemented DNS-Over-HTTPS proxy functionality into one of their tools: [`cloudflared`](https://github.com/cloudflare/cloudflared).
Along with releasing their DNS service [1.1.1.1](https://blog.cloudflare.com/announcing-1111/) (and later [1.1.1.1 for Families](https://blog.cloudflare.com/introducing-1-1-1-1-for-families)) Cloudflare implemented DNS-Over-HTTPS proxy functionality into one of their tools: [`cloudflared`](https://github.com/cloudflare/cloudflared).
In the following sections, we will be covering how to install and configure this tool on `Pi-hole`.
!!! info
The `cloudflared` binary will work with other DoH providers (for example, you could use `https://8.8.8.8/dns-query` for Google's DNS-Over-HTTPS service).
The `cloudflared` binary will also work with other DoH providers (for example, you could use `https://dns.google/dns-query` for [Google's DoH service](https://developers.google.com/speed/public-dns/docs/doh) or `https://dns.quad9.net/dns-query` for [Quad9's DoH service](https://quad9.net/service/service-addresses-and-features)).
### Installing `cloudflared`
@@ -81,8 +81,10 @@ Edit configuration file by copying the following in to `/etc/default/cloudflared
```bash
# Commandline args for cloudflared, using Cloudflare DNS
CLOUDFLARED_OPTS=--port 5053 --upstream https://1.1.1.1/dns-query --upstream https://1.0.0.1/dns-query
CLOUDFLARED_OPTS=--port 5053 --upstream https://cloudflare-dns.com/dns-query
```
!!! info
See the other available [Cloudflare endpoints](https://developers.cloudflare.com/1.1.1.1/infrastructure/network-operators/#available-endpoints).
Update the permissions for the configuration file and `cloudflared` binary to allow access for the cloudflared user:
@@ -160,7 +162,7 @@ Finally, configure Pi-hole to use the local `cloudflared` service as the upstrea
### Updating `cloudflared`
The `cloudflared` tool will not receive updates through the package manager. However, you should keep the program update to date. You can either do this manually, or via a cron script.
The `cloudflared` tool will not receive updates through the package manager. However, you should keep the program update to date. You can either do this manually (e.g. by watching their [repo](https://github.com/cloudflare/cloudflared)), or via a cron script.
The procedure for updating depends on how you configured the `cloudflared` binary.