Sign inSign up

devzwf/pihole-dp-dot-doh

By devzwf

•Updated over 3 years ago
Archived

Official pihole docker both DoT (DNS over TLS) and DoH (DNS over HTTPS).

Image
0

2.7K

devzwf/pihole-dp-dot-doh repository overview

⁠pihole-dot-doh - (dnscrypt-proxy)

Official pihole docker with both DoT (DNS over TLS) and DoH (DNS over HTTPS) clients. Don't browse the web securely and yet still send your DNS queries in plain text!

⁠Usage:

For docker parameters, refer to official pihole docker readme⁠. Below is an docker compose example.

version: '3.0'

services:
  pihole:
    container_name: pihole-dot-doh
    image: devzwf/pihole-dp-dot-doh:latest
    hostname: pihole1
    ports:
      - "53:53/tcp"
      - "53:53/udp"
      - "67:67/udp"
      - "82:80/tcp"
    environment:
      TZ: 'America/Toronto'
      #WEBPASSWORD: 'password'
      DNS1: '127.3.3.3#5353'
      DNS2: '127.2.2.2#5253'
      #INTERFACE: 'br0'
      ServerIP: <IP of the docker host>
      ServerIPv6: ''
      IPv6: 'False'
      DNSMASQ_LISTENING: 'all'
    # Volumes store your data between container upgrades
    volumes:
      - './pihole/:/etc/pihole/'
      - './dnsmasq.d/:/etc/dnsmasq.d/'
      - './config/:/config'
      - './log/dnscrypt-proxy/:/var/log/dnscrypt-proxy'
    cap_add:
      - NET_ADMIN
    restart: unless-stopped
⁠Notes:
  • Remember to set pihole env DNS1 and DNS2 to use the DoH / DoT IP below. If either DNS1 or DNS2 is NOT set, Pihole will use a non-encrypted service.
    • DoH service (dnscrypt-proxy) runs at 127.3.3.3#5353. Using cloudflare by default
    • DoT service (stubby) runs at 127.2.2.2#5253. Uses google (8.8.8.8 / 8.8.4.4) by default
    • To use just DoH or just DoT service, set both DNS1 and DNS2 to the same value.
  • In addition to the 2 official paths, you can also map container /config to expose configuration files for dnscrypt-proxy (dnscrypt-proxy.toml) and stubby (stubby.yml) and optionnaly cloudflared (cloudflared.yml).
    • Edit these files to add / remove services as you wish. The flexibility is yours.
  • Credits:

⁠Support

ko-fi

Tag summary

Content type

Image

Digest

sha256:2df33d304…

Size

145.2 MB

Last updated

over 3 years ago

docker pull devzwf/pihole-dp-dot-doh