You can do it. I set mine up ages ago. https://docs.pi-hole.net/guides/dns/cloudflared/
You can do it. I set mine up ages ago. https://docs.pi-hole.net/guides/dns/cloudflared/
PiHole can be configured to use DoH, as can OpnSense and presumably other local DNS and router servers.
I’m not sure you could even run pihole on 512MB RAM.
I have a set of shell / powershell scripts that I run post-install to configure everything. They are hosted on a local webserver, so it is just a one-line command to run the appropriate one.