Blog
ElastiCourse > Blog > How-To Docker > How to use DNS over HTTPS using Docker + Pi-hole + Cloudflare + Docker Compose (DNS Encryption)
How to use DNS over HTTPS using Docker + Pi-hole + Cloudflare + Docker Compose (DNS Encryption)
- December 22, 2020
- Posted by: ElastiCourse
- Category: How-To Docker
No Comments

Original Script for Docker only on Windows / Linux for DNS-level protection
New Script for Docker & Cloudflare for DNS Over HTTPS (DOH)
Video Sections
00:00 Intro
00:15 Issues with DNS
00:57 Example DNS setup with No encryption
03:44 Example DNS setup with Cloudflare encryption
Docker Compose: Infrastructure as Code IaC utility for deploying Docker services
Cloudflared: DNS proxy to encrypt DNS request over HTTPS protocol
Cloudflared is available in Windows, Linux and Mac, and it works best inside a Docker container.
DNS encryption enhances your privacy online and protects you from DNS sniffing.