diff --git a/README.md b/README.md index b23e6c7..7d0a66c 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/passivedns/Dockerfile b/passivedns/Dockerfile new file mode 100644 index 0000000..a758f62 --- /dev/null +++ b/passivedns/Dockerfile @@ -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"] diff --git a/passivedns/README.md b/passivedns/README.md new file mode 100644 index 0000000..a64283e --- /dev/null +++ b/passivedns/README.md @@ -0,0 +1,2 @@ +passivedns +========== diff --git a/passivedns/docker-compose.yml b/passivedns/docker-compose.yml new file mode 100644 index 0000000..45075ac --- /dev/null +++ b/passivedns/docker-compose.yml @@ -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