1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00

update ftldns

This commit is contained in:
kevin 2023-11-28 21:34:22 +08:00
parent 207a30d7d1
commit 5a74469e3d
5 changed files with 24 additions and 4 deletions

View File

@ -18,7 +18,8 @@ RUN set -xe \
VOLUME /etc/pihole
EXPOSE 53/tcp \
EXPOSE 4711/tcp \
53/tcp \
53/udp
CMD ["pihole-FTL", "-f"]

View File

@ -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/

Binary file not shown.

View File

@ -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

View File

@ -2,6 +2,7 @@ version: "3.8"
services:
image: vimagick/ftldns
ports:
- "4711:4711"
- "53:53/tcp"
- "53:53/udp"
volumes: