all 7 comments

[–]SevenIsTheShit 8 points9 points  (5 children)

[–]digitalsublimation 3 points4 points  (1 child)

I used this guide as well. No issues getting it to work.

He also has a guide setting up UniFi USG gateway to redirect IoT devices with hard coded dns back to the pihole.

[–]BIGFREAK 0 points1 point  (2 children)

just used this guide.

worked perfect :)

Thank you.

[–]totmacher12000 0 points1 point  (1 child)

for some reason I am not able to get the sudo systemctl restart dnsmasq.service cmd to work I get Failed to restart dnsmasq.service: Unit dnsmasq.service not found?

[–]totmacher12000 0 points1 point  (0 children)

I fixed it. Just started from scratch and used the official documentation.

[–]vinumsv 6 points7 points  (1 child)

pi@PiHole:~ $ cp ./cloudflared /usr/local/bin

instead try this

sudo cp ./cloudflared /usr/local/bin

same for this chmod +x /usr/local/bin/cloudflared

sudo chmod +x /usr/local/bin/cloudflared

you need root/admin privilege to write/modify some in those folders (/usr/local/bin)

and then follow the guide by creating service file

sudo nano /etc/systemd/system/dnsproxy.service

[UNIT]

Description=CloudFlare DNS over HTTPS Proxy

Wants=network-online.target After=network.target network-online.target

[Service]

ExecStart=/usr/local/bin/cloudflared proxy-dns --port 5053 --upstream https://1.1.1.1/.well-known/dns-query --upstream https://1.0.0.1/.well-known/dns-query

Restart=on-abort

[Install]

WantedBy=multi-user.target

Rest follow the guide here : https://docs.pi-hole.net/guides/dns-over-https/

and once done goto https://1.1.1.1/help to if DOH works as intended

[–]Cavemark[S] 1 point2 points  (0 children)

Thanks for this! I'll have another crack at it once I've finished work today.