1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-26 00:38:37 +00:00

update ftldns

This commit is contained in:
kevin 2023-11-26 23:08:50 +08:00
parent 3eae3350dd
commit 946752d634
7 changed files with 22 additions and 2 deletions

@ -3,4 +3,21 @@ FTLDNS
[FTLDNS][1] (pihole-FTL) provides an interactive API and also generates statistics for Pi-hole®'s Web interface. [FTLDNS][1] (pihole-FTL) provides an interactive API and also generates statistics for Pi-hole®'s Web interface.
## Up and Running
```bash
$ docker compose up -d
$ dig @127.0.0.1 -p 53 www.youtube.com
$ docker compose exec ftldns pihole-FTL sql gravity.db
>>> .schema domainlist
>>> insert into domainlist(type, domain) values (3, '(\.|^)youtube\.com$');
>>> .quit
$ docker compose exec ftldns kill -RTMIN 1
$ dig @127.0.0.1 -p 53 www.youtube.com
```
[1]: https://github.com/pi-hole/FTL [1]: https://github.com/pi-hole/FTL

0
ftldns/data/log/.gitkeep Normal file

@ -2,10 +2,13 @@ version: "3.8"
services: services:
image: vimagick/ftldns image: vimagick/ftldns
ports: ports:
- "53:53" - "53:53/tcp"
- "53:53/udp"
volumes: volumes:
- ./data:/etc/pihole - ./data/etc:/etc/pihole
- ./data/log:/var/log/pihole
tmpfs: tmpfs:
- /run/pihole - /run/pihole
- /dev/shm - /dev/shm
working_dir: /etc/pihole
restart: unless-stopped restart: unless-stopped