Wener Notes

Pi Hole

约 1 分钟阅读
  • pi-hole/pi-holeGitHubpi-hole/pi-holepi-hole/pi-hole 是什么? · 基于 DNS 的 AD/Tracker Block · 端口 · dnsmasq · lighttpd · php · AdminLTE · sqlite3 · pihole-FTL · 自定义 dnsmasq = 核心 dns+dhcp+api 服务笔记:Pi Hole 是什么?
    • 基于 DNS 的 AD/Tracker Block
  • 端口
bash
cat <<YAML > docker-compose.yaml
version: "3"

# More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/
services:
  pihole:
    container_name: pihole
    image: pihole/pihole:latest
    ports:
      - "53:53/tcp"
      - "53:53/udp"
      - "67:67/udp"
      - "80:80/tcp"
      - "443:443/tcp"
    environment:
      TZ: 'America/Chicago'
      WEBPASSWORD: 'password' # 不设置则为随机
    # Volumes store your data between container upgrades
    volumes:
      - './pihole/etc:/etc/pihole/'
      - './pihole/dnsmasq.d:/etc/dnsmasq.d/'
    # Recommended but not required (DHCP needs NET_ADMIN)
    # https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
    cap_add:
      - NET_ADMIN
    restart: unless-stopped
YAML
docker-compose up --detach

# docker 直接启动
# registry.cn-hongkong.aliyuncs.com/cmi
docker run -d --restart always\
  -e TZ=Asia/Shanghai \
  -e WEBPASSWORD=password \
  -v $PWD/pihole/etc:/etc/pihole \
  -v $PWD/pihole/dnsmasq.d:/etc/dnsmasq.d \
  -p 53:53 -p 53:53/udp -p 67:67/udp -p 80:80 -p 443:443 \
  --name pihole pihole/pihole:latest

internal

  • dnsmasq
  • lighttpd
  • php
  • AdminLTE
  • sqlite3
  • pihole-FTL

FAQ

避免解析 local

/etc/dnsmasq.d/02-pihole.conf

ini
local=/lan/
local=/local/
local=/internal/

关联信息

反向链接、本文链接的其他页面和外部资料。

References

GitHub2 条
最近更新commit c5e24acEdit

On this page