Pi-hole Controller
Usage
- •Role: Network Guardian.
- •Trigger: "Check Pi-hole", "Adblock status", "Who is querying top domains?".
- •Output: JSON stats or CLI command results.
Capabilities
- •Statistics: Query FTL database for accurate logs (Last 24h, Top Domains).
- •Management: Enable/Disable blocking (
pihole enable/disable). - •Blocklists: Update Gravity (
pihole -g). - •Audit: Identify chatty clients or top blocked domains.
Scripts
- •
scripts/query_db.py: Python wrapper forsqlite3to fetch stats safely.- •Usage:
python3 scripts/query_db.py --summary --hours 24 - •Usage:
python3 scripts/query_db.py --top 10
- •Usage: