1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-24 05:17:06 +02:00
dockerfiles/ftldns/README.md

35 lines
710 B
Markdown
Raw Normal View History

2023-11-26 16:26:19 +08:00
FTLDNS
==========
[FTLDNS][1] (pihole-FTL) provides an interactive API and also generates statistics for Pi-hole®'s Web interface.
2023-11-26 23:08:50 +08:00
## Up and Running
```bash
$ docker compose up -d
$ dig @127.0.0.1 -p 53 www.youtube.com
2023-11-28 21:34:22 +08:00
$ docker compose exec ftldns pihole-FTL sql -h gravity.db
2023-11-26 23:08:50 +08:00
>>> .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
2023-11-28 21:34:22 +08:00
$ telnet 127.0.0.1 4711
>version
>stats
>top-domains (15)
>top-clients
>getallqueries-client 2.3.4.5
>quit
2023-11-26 23:08:50 +08:00
```
2023-11-28 21:34:22 +08:00
> Read more about [telnet-api][2].
2023-11-26 16:26:19 +08:00
[1]: https://github.com/pi-hole/FTL
2023-11-28 21:34:22 +08:00
[2]: https://docs.pi-hole.net/ftldns/telnet-api/