diff --git a/ftldns/Dockerfile b/ftldns/Dockerfile index fca18a2..5018689 100644 --- a/ftldns/Dockerfile +++ b/ftldns/Dockerfile @@ -18,7 +18,8 @@ RUN set -xe \ VOLUME /etc/pihole -EXPOSE 53/tcp \ +EXPOSE 4711/tcp \ + 53/tcp \ 53/udp CMD ["pihole-FTL", "-f"] diff --git a/ftldns/README.md b/ftldns/README.md index 8f4fc28..c206078 100644 --- a/ftldns/README.md +++ b/ftldns/README.md @@ -10,7 +10,7 @@ $ docker compose up -d $ dig @127.0.0.1 -p 53 www.youtube.com -$ docker compose exec ftldns pihole-FTL sql gravity.db +$ docker compose exec ftldns pihole-FTL sql -h gravity.db >>> .schema domainlist >>> insert into domainlist(type, domain) values (3, '(\.|^)youtube\.com$'); >>> .quit @@ -18,6 +18,17 @@ $ docker compose exec ftldns pihole-FTL sql gravity.db $ docker compose exec ftldns kill -RTMIN 1 $ dig @127.0.0.1 -p 53 www.youtube.com + +$ telnet 127.0.0.1 4711 +>version +>stats +>top-domains (15) +>top-clients +>getallqueries-client 2.3.4.5 +>quit ``` +> Read more about [telnet-api][2]. + [1]: https://github.com/pi-hole/FTL +[2]: https://docs.pi-hole.net/ftldns/telnet-api/ diff --git a/ftldns/data/etc/macvendor.db b/ftldns/data/etc/macvendor.db new file mode 100644 index 0000000..1f53de1 Binary files /dev/null and b/ftldns/data/etc/macvendor.db differ diff --git a/ftldns/data/etc/pihole-FTL.conf b/ftldns/data/etc/pihole-FTL.conf index eaa571f..88596e8 100644 --- a/ftldns/data/etc/pihole-FTL.conf +++ b/ftldns/data/etc/pihole-FTL.conf @@ -1,6 +1,13 @@ # -# https://aur.archlinux.org/cgit/aur.git/tree/pi-hole-ftl.conf?h=pi-hole-ftl +# https://github.com/pi-hole/docs/blob/master/docs/ftldns/configfile.md # -BLOCKINGMODE=NXDOMAIN FTLPORT=4711 +SOCKET_LISTENING=all +BLOCKINGMODE=NXDOMAIN +DBFILE=/etc/pihole/pihole-FTL.db +GRAVITYDB=/etc/pihole/gravity.db +MACVENDORDB=/etc/pihole/macvendor.db +SETUPVARSFILE=/etc/pihole/setupVars.conf +DEBUG_ALL=false +DEBUG_API=false diff --git a/ftldns/docker-compose.yml b/ftldns/docker-compose.yml index 6896eae..85418fe 100644 --- a/ftldns/docker-compose.yml +++ b/ftldns/docker-compose.yml @@ -2,6 +2,7 @@ version: "3.8" services: image: vimagick/ftldns ports: + - "4711:4711" - "53:53/tcp" - "53:53/udp" volumes: