# Pi-hole DoT/DoH

Pi-hole DoT/DoH is a containerized Pi-hole DNS server with built-in DNS over TLS and DNS over HTTPS support, letting homelab users encrypt DNS queries for local or remote devices while keeping network-wide ad and. It is open source and self-hosted, installable on Unraid.

Canonical page: https://ourlocalhost.com/app/7506/pi-hole-dot-doh

## Description

Pi-hole DoT/DoH is a containerized Pi-hole DNS server with built-in DNS over TLS and DNS over HTTPS support, letting homelab users encrypt DNS queries for local or remote devices while keeping network-wide ad and tracker blocking.

## Platform availability

Available on 1 of 10 platforms: Unraid.

## Health score

61/100 (Good), based on 4 of 4 factors.
- Maintained: 84 (last commit 28 days ago)
- Popular: 31 (33 GitHub stars)
- Easy to install: 35 (1 install platform, install notes, Docker image)
- Light to run: 85 (512 MB minimum RAM)

## Links

- GitHub: https://github.com/devzwf/pihole-dot-doh
- Documentation: https://docs.pi-hole.net/guides/dns-over-https/
- Unraid: https://ca.unraid.net/apps/pihole-dot-doh-1sek2zx0myrfq9

## Common questions

### What Docker networking constraints affect Pi-Hole DoH/DoT?

You must assign a static IP address to the Docker container for Pi-hole to work. Port 53 can only be used with a custom br0/br1 network and a static IP, and DNS lookup rarely works on other ports. On Unraid, the network DNS server setting cannot point to the Docker IP.

### How should DNS1 and DNS2 be set for DoH and DoT?

Set both DNS1 and DNS2 to 127.1.1.1#5153 for DoH and/or 127.2.2.2#5253 for DoT. If you want only DoH or only DoT, set both variables to the same value.

### Why do self-hosters look for a DoH/DoT Pi-hole container?

A common complaint was that stock Pi-hole did not natively support secure DNS protocols such as DoH and DoT, inbound or upstream.

### Does Pi-hole remain effective if clients use encrypted DNS elsewhere?

The discussion questions whether Pi-hole's blocklists remain useful if it does not see the DNS records being queried. That can happen when clients use DoH or DoT to another resolver.

## Alternatives

- AdAway: An ad blocker that uses the hosts file.
- AdGuard: AdGuard is the best way to get rid of intrusive ads and online tracking, and to protect your computer from malware.
- AdGuard Home: AdGuard Home is a self-hosted DNS server that blocks ads and trackers across your entire home network by re-routing tracking domains to a b…
- Blokada: Blokada is the popular ad blocker and privacy app for Android and iOS.
- Control D: Control D is a modern and customizable DNS service that blocks threats, unwanted content and ads - on all devices.
- JustDNS: JustDNS is a self-hosted filtering DNS resolver for your whole network.
- NextDNS: NextDNS protects you from all kinds of security threats, blocks ads and trackers on websites and in apps and provides a safe and supervised…
- Numa: Portable DNS resolver in a single binary.
- Portmaster: Free and open-source tool that monitors all network activity, blocks unwanted connections, uses filter lists for ads and malware, enforces…
- Privoxy: Privoxy is a non-caching web proxy with advanced filtering capabilities for enhancing privacy, modifying web page data and HTTP headers, co…
- RethinkDNS: An OpenSnitch-inspired firewall and network monitor + a pi-hole-inspired DNS over HTTPS client with blocklists.
- Technitium DNS Server: Technitium DNS Server is an open source tool that can be used as a personal local DNS server for privacy &amp; security.

---
Source: Our Local Host (https://ourlocalhost.com/app/7506/pi-hole-dot-doh), the self-hosted and open-source app directory.
