Blog
How to use DNS over HTTPS using Docker + Pi-hole + Cloudflare + Docker Compose
- June 19, 2022
- Posted by: ElastiCourse
- Category: How-To Docker

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.
Important terminology:
Docker Compose: Infrastructure as Code IaC utility for deploying Docker services.
Cloudflared: DNS proxy to encrypt DNS request over HTTPS protocol. Cloudflared is available for Windows, Linux and Mac, and lives inside a Docker container.
DNS encryption enhances your privacy online and protects you from DNS sniffing.
ISP Internet service provider. A company that provides internet services to you.
Important Links:
Original Script for Docker only on Windows / Linux for DNS-level protection
New Script for Docker & Cloudflare for DNS Over HTTPS (DOH)
Leave a Reply Cancel reply
You must be logged in to post a comment.