先用一键脚本安装一个 alphine linux docker 。

bash -c "$(wget -qO - <https://github.com/tteck/Proxmox/raw/main/ct/alpine-docker.sh>)"

安装 git 和 下载 paopaodns

apk update
apk add git
git clone <https://github.com/kkkgo/PaoPaoDNS.git>
version: "3"
services:
  paopaodns:
    image: sliamb/paopaodns:latest
    container_name: PaoPaoDNS
    network_mode: "host"
    restart: always
    volumes:
      - /share/Container/paopaodns:/data
    environment:
      - TZ=Asia/Shanghai
      - UPDATE=daily
      - DNS_SERVERNAME=homedns
      - SERVER_IP=192.168.31.4
      - DNSPORT=53
      - SOCKS5=no
      - CNAUTO=yes
      - IPV6=no
      - CNFALL=yes
      - AUTO_FORWARD=no
      - CN_TRACKER=yes
      - SAFEMODE=no
      - RULES_TTL=600
      - ADDINFO_ENABLE=true
      - ADDINFO_FIELDS=client_ip,query_time,query_name,response_code
    ports:
      - "53:53/udp"
      - "53:53/tcp"
      - "5304:5304/udp"
      - "5304:5304/tcp"
      - "7889:7889/tcp"