diff --git a/README.md b/README.md index e36208d..b616d40 100644 --- a/README.md +++ b/README.md @@ -302,6 +302,7 @@ A collection of delicious docker recipes. - [x] dnscrypt-server - [x] dnsmasq - [x] dnsmasq-arm +- [x] ftldns - [x] passivedns - [x] pdnsd diff --git a/ftldns/Dockerfile b/ftldns/Dockerfile new file mode 100644 index 0000000..fca18a2 --- /dev/null +++ b/ftldns/Dockerfile @@ -0,0 +1,24 @@ +# +# Dockerfile for FTLDNS (pihole-FTL) +# + +FROM alpine:3 +MAINTAINER EasyPi Software Foundation + +ARG FTL_VERSION=v5.23 +ARG FTL_URL=https://github.com/pi-hole/FTL/releases/download/$FTL_VERSION/pihole-FTL-musl-linux-x86_64 + +RUN set -xe \ + && apk add --no-cache curl \ + && echo "conf-dir=/etc/pihole/dnsmasq.d,*.conf" >> /etc/dnsmasq.conf \ + && curl -sSL $FTL_URL -o /usr/bin/pihole-FTL \ + && chmod +x /usr/bin/pihole-FTL \ + && pihole-FTL --version \ + && apk del curl + +VOLUME /etc/pihole + +EXPOSE 53/tcp \ + 53/udp + +CMD ["pihole-FTL", "-f"] diff --git a/ftldns/README.md b/ftldns/README.md new file mode 100644 index 0000000..0792e01 --- /dev/null +++ b/ftldns/README.md @@ -0,0 +1,6 @@ +FTLDNS +========== + +[FTLDNS][1] (pihole-FTL) provides an interactive API and also generates statistics for Pi-holeĀ®'s Web interface. + +[1]: https://github.com/pi-hole/FTL diff --git a/ftldns/data/dnsmasq.d/settings.conf b/ftldns/data/dnsmasq.d/settings.conf new file mode 100644 index 0000000..751e579 --- /dev/null +++ b/ftldns/data/dnsmasq.d/settings.conf @@ -0,0 +1,4 @@ +no-hosts +no-resolv +cache-size=10000 +server=8.8.8.8 diff --git a/ftldns/data/gravity.db b/ftldns/data/gravity.db new file mode 100644 index 0000000..fb6b111 Binary files /dev/null and b/ftldns/data/gravity.db differ diff --git a/ftldns/data/pihole-FTL.conf b/ftldns/data/pihole-FTL.conf new file mode 100644 index 0000000..eaa571f --- /dev/null +++ b/ftldns/data/pihole-FTL.conf @@ -0,0 +1,6 @@ +# +# https://aur.archlinux.org/cgit/aur.git/tree/pi-hole-ftl.conf?h=pi-hole-ftl +# + +BLOCKINGMODE=NXDOMAIN +FTLPORT=4711 diff --git a/ftldns/data/setupVars.conf b/ftldns/data/setupVars.conf new file mode 100644 index 0000000..0030a78 --- /dev/null +++ b/ftldns/data/setupVars.conf @@ -0,0 +1 @@ +BLOCKING_ENABLED=true diff --git a/ftldns/docker-compose.yml b/ftldns/docker-compose.yml new file mode 100644 index 0000000..130f958 --- /dev/null +++ b/ftldns/docker-compose.yml @@ -0,0 +1,11 @@ +version: "3.8" +services: + image: vimagick/ftldns + ports: + - "53:53" + volumes: + - ./data:/etc/pihole + tmpfs: + - /run/pihole + - /dev/shm + restart: unless-stopped