Pi-Hole
Installed the Docker this time around.
DoT/DoH with cloudflared
Also installed cloudflared to use Pihole with DoT/DoH to dns.zcyph.cc. First set up the config file in ~/.cloudflared/config.yml:
proxy-dns: true
proxy-dns-port: 5053
proxy-dns-upstream:
- https://dns.zcyph.cc/dns-query
Then install cloudflared:
curl -L https://pkg.cloudflare.com/cloudflare-main.gpg | sudo tee /usr/share/keyrings/cloudflare-archive-keyring.gpg >/dev/null
echo "deb [signed-by=/usr/share/keyrings/cloudflare-archive-keyring.gpg] https://pkg.cloudflare.com/cloudflared $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/cloudflared.list
sudo apt update && sudo apt install cloudflared -y
Check with sudo systemctl status cloudflared.
Then point Pihole to 127.0.0.1#5053 from the web admin panel.
Troubleshooting
Found /etc/resolv.conf pointing to 127.0.0.1 and nothing would resolve.
Resolved issue by changing static domain_name_servers to 9.9.9.9 in /etc/dhcpcd.conf, then reinstalled Pihole, Unbound and dnscrypt-proxy and pointed Pihole back to 127.0.0.1#5300.
After an update, got FTL failed to start due to unknown interface tun0. Resolved by adding this to /etc/pihole/pihole-FTL.conf:
DELAY_STARTUP=5
INTERFACE=eth0
Then found /etc/dnsmasq.d/02-ovpn.conf had interface=tun0 for some reason. Commented that out and restarted Pihole, all good after.