I no longer use cloud flared, but I don't think it should show you as using DoH, because technically "you" aren't. It's the cloud flared process that is running it.
Just my guess, and perhaps another cloudflared DoH user can check this.
Test when I have Pi-Hole pointed directly to Cloudflare:
I also replied in the Reddit thread. Disabling DNSSEC in Pi-hole also did the trick for me: it now shows multiple 'yes' on https://https;//1.1.1.1/help instead of only 'No'.
But the big question is: should i leave DNSSEC disabled, or can it be used together with DNS-over-HTTPS?
Because when i disable it, the help page of 1.1.1.1 looks OK, but pages like these two down below indicate i am not using DNSSEC:
Please advise as i am kinda lost on configuring the most optimal settings.
I'm having the same issue but disabling DNSSEC didn't change anything for me. Cloudflare's help site says No for everything except the bottom section, regardless.
I also cross referenced the official docs/guide against Ben Dews' guide (which I followed to setup the Pihole) and Ben's guide did not mention putting 127.0.0.1#5053 as the upstream DNS. However, when I did that the DNS server quit responding and pages would no longer load.
Thank you for the reply. Here's what is shown for systemctl status cloudflared.
cloudflared.service - cloudflared DNS over HTTPS proxy
Loaded: loaded (/lib/systemd/system/cloudflared.service; enabled; vendor present: enabled)
Active: inactive (dead) since Fri 2018-08-24 04:06:01 UTC; 11h ago
Process: 310 ExecStart=/usr/local/bin/cloudflared proxy-dns $CLOUDFLARED_OPTS (code=exited, status=0/SUCCESS)
Main PID: 310 (code=exited, status=0/SUCCESS)
Aug 24 04:05:58 raspberrypi systemd[1]: Started cloudflared DNS over HTTPS proxy.
Aug 24 04:06:01 raspberrypi cloudflared[310]: time="2018-08-24T04:06:01Z" level=warning msg="Cannot determine default configuration path. No file [config.yml config.yaml] in [~/.cloudflared ~/.cloudflare-warp ~/cloudflare-warp /usr/local/etc/cloudflared /etc/cloudflared]"
Aug 24 04:06:01 raspberrypi cloudflared[310]: time="2018-08-24T04:06:01Z" level=info msg="Adding DNS upstream" url=https://1.1.1.1/dns-query"
Aug 24 04:06:01 raspberrypi cloudflared[310]: time="2018-08-24T04:06:01Z" level=info msg="Adding DNS upstream" url=https://1.0.0.1/dns-query"
Aug 24 04:06:01 raspberrypi cloudflared[310]: time="2018-08-24T04:06:01Z" level=info msg="Starting DNS over HTTPS proxy status" addr="dns://localhost:53"
For what it's worth, the ad and tracker blocking is working network-wide. I went to several different websites with known advertising (on multiple devices) and the ads don't load. The Pi-hole admin shows ~3k blocked queries.
After multiple re-installs, I figured out the issue. Cloudflared uses a different configuration method (both files and syntax) compared to what's written in the guides.
For my future self (or anyone with the same issue), I fixed it by foregoing a configuration file. I put the command-line arguments inline inside "cloudflared.service" instead of using $CLOUDFLARED_OPTS and a separate configuration file.
If I figure out how to get it working with the configuration file instead I will add my findings at that time.