From 90a7fbb777fb6fd92b538dec51cecce20b1041b1 Mon Sep 17 00:00:00 2001 From: iUnknwn Date: Sat, 1 Feb 2020 22:35:17 -0800 Subject: [PATCH] Provided manual updating steps for Cloudflared Changed documentation to first list manual method to update the cloudflared binary, and then have a subsequent paragraph on automatic updating if desired by the user. Also, while small, added a note that cloudflared will work with other DoH providers (was useful when there was a cloudflare outage in my region). --- docs/guides/dns-over-https.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/docs/guides/dns-over-https.md b/docs/guides/dns-over-https.md index 659d643e7..3932faf81 100644 --- a/docs/guides/dns-over-https.md +++ b/docs/guides/dns-over-https.md @@ -58,10 +58,12 @@ sudo useradd -s /usr/sbin/nologin -r -M cloudflared Proceed to create a configuration file for `cloudflared` by copying the following in to `/etc/default/cloudflared`. This file contains the command-line options that get passed to cloudflared on startup: ```bash -# Commandline args for cloudflared +# 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 ``` +**Note:** The `cloudflared` binary will work with other DoH providers (for example, you could use https://8.8.8.8/dns-query for Google DNS). + Update the permissions for the configuration file and `cloudflared` binary to allow access for the cloudflared user: ```bash @@ -135,16 +137,16 @@ 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, but it can be instrcted to update itself. - -To do this, create the following script, and place it in `/etc/cron.weekly/cloudflared-updater.sh`: +The `cloudflared` tool will not receive updates through the package manager, however it can be updated +manually by running these commands: ```bash cloudflared update systemctl restart cloudflared ``` -Adjust permissions: +If you want to have the system update `cloudflared` automatically, simply place the update commands in the +file `/etc/cron.weekly/cloudflared-updater.sh`, and adjust permissions: ```bash sudo chmod +x /etc/cron.weekly/cloudflared-updater.sh