software:service:pihole
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| software:service:pihole [2021/12/31 16:23] – [Remove Youtube ads network wide] warnaud | software:service:pihole [2025/03/02 09:51] (current) – [DNS] warnaud | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== DNS ====== | ||
| + | Both dns here were running on top of IoT devices ([[devices: | ||
| + | Now they use [[software: | ||
| + | ===== Remove Youtube ads network wide ===== | ||
| + | :!: Doesn' | ||
| + | https:// | ||
| + | TL;DR; | ||
| + | <code bash> | ||
| + | On the DNS (using dnsmasq here via pi-hole) | ||
| + | <code bash>vi / | ||
| + | <code perl> <IP from nslookup> | ||
| + | reboot/ | ||
| + | |||
| + | ===== BLocklist ===== | ||
| + | < | ||
| + | |||
| + | ===== Free Up Pi-Hole Disk Space Usage ===== | ||
| + | ==== Cleaning Log Files ==== | ||
| + | Log into the Pi-Hole server\\ | ||
| + | Run the following commands in a terminal window\\ | ||
| + | <code bash> | ||
| + | # output current pihole db size | ||
| + | du -h / | ||
| + | |||
| + | # flush pihole logs | ||
| + | pihole flush | ||
| + | |||
| + | # stop pihole FTL service | ||
| + | systemctl stop pihole-FTL | ||
| + | |||
| + | # delete the FTL database file | ||
| + | rm / | ||
| + | |||
| + | # restart pihole FTL service | ||
| + | systemctl start pihole-FTL | ||
| + | |||
| + | # output reduced pihole db size | ||
| + | du -h / | ||
| + | </ | ||
| + | Reduce Long Term Log Lifespan\\ | ||
| + | By default, Pi-hole keeps long term DNS logs for 365 days.\\ This lifespan can be changed by altering the MAXDBDAYS variable in **/ | ||
| + | <code bas> | ||
| + | # edit pihole-FTD.conf | ||
| + | vi / | ||
| + | </ | ||
| + | Add or edit MAXDBDAYS value in the configuration file as needed | ||
| + | <code bash> | ||
| + | # restart pihole-FTL server | ||
| + | sudo systemctl restart pihole-FTL | ||
| + | </ | ||
| + | ===== Allowlist ===== | ||
| + | just do a small file with one domain per line and import | ||
