add passivedns

This commit is contained in:
kev 2023-09-19 16:49:30 +08:00
parent 0649bf67ec
commit e3468097e0
4 changed files with 63 additions and 0 deletions

View File

@ -301,6 +301,7 @@ A collection of delicious docker recipes.
- [x] dnscrypt-server
- [x] dnsmasq
- [x] dnsmasq-arm
- [x] passivedns
- [x] pdnsd
## 3rd-party (sorted by basename)

43
passivedns/Dockerfile Normal file
View File

@ -0,0 +1,43 @@
#
# Dockerfile for passivedns
#
FROM debian:12
MAINTAINER EasyPi Software Foundation
RUN set -xe \
&& apt update -y \
&& apt install -y autoconf \
automake \
build-essential \
curl \
libjansson-dev \
libjansson4 \
libldns-dev \
libldns3 \
libpcap-dev \
libpcap0.8 \
libssl-dev \
libssl3 \
&& mkdir -p /opt/passivedns \
&& cd /opt/passivedns \
&& curl -sSL https://github.com/gamelinux/passivedns/archive/refs/heads/master.tar.gz | tar xz --strip 1 \
&& autoreconf --install && ./configure --prefix=/usr && make install \
&& cp etc/default/passivedns-debian /etc/default/passivedns \
&& cp etc/init.d/passivedns-debian /etc/init.d/passivedns \
&& cp etc/logrotate.d/passivedns /etc/logrotate.d/passivedns \
&& cd .. \
&& rm -rf /opt/passivedns \
&& apt remove -y autoconf \
automake \
build-essential \
curl \
libldns-dev \
libjansson-dev \
libpcap-dev \
libssl-dev \
&& rm -rf /var/lib/apt/lists/* \
&& passivedns -V
ENTRYPOINT ["passivedns"]
CMD ["-h"]

2
passivedns/README.md Normal file
View File

@ -0,0 +1,2 @@
passivedns
==========

View File

@ -0,0 +1,17 @@
version: "3.8"
services:
passivedns:
image: vimagick/passivedns
command: >
-i eth0
-l /var/log/passivedns/passivedns.log
-L /var/log/passivedns/passivedns-nx.log
-p /var/run/passivedns.pid
-P 86400
-S 256
-X 46CDNOPRSTMnx
volumes:
- ./data:/var/log/passivedns
network_mode: host
privileged: true
restart: unless-stopped