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

View File

@ -3,4 +3,21 @@ FTLDNS
[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

0
ftldns/data/log/.gitkeep Normal file
View File

View File

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