How to use DNS over HTTPS using Docker + Pi-hole + Cloudflare + Docker Compose

Learn how to increase the privacy of your internet activity by implementing DNS encryption. This simple containerized solution will allow you to block ads and malware, while using a secure encrypted channel DNS-over-HTTPs to Cloudflare DNS resolvers.

Terminology:

  1. Original Script for Docker only on Windows / Linux for DNS-level protection
  2. New Script for Docker & Cloudflare for DNS Over HTTPS (DOH)