User Tools

Site Tools


software:service:pihole

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
software:service:pihole [2021/12/31 16:23] – [Remove Youtube ads network wide] warnaudsoftware: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:beaglebone|BeagleBone]] & [[devices:raspberrypi|Raspberry Pi]]) the DHCP from the Internet provider's box override its dns for my internal ones.\\
 +Now they use [[software:service:adguardhome|AdGuardHome]] since pihole v6 and its catastrophic performances.
 +===== Remove Youtube ads network wide =====
 +:!: Doesn't work :!:
 +https://www.reddit.com/r/pihole/comments/9w5swx/i_think_ive_managed_to_block_youtube_ads_with/
  
 +TL;DR;
 +<code bash>nslookup manifest.googlevideo.com</code>
 +On the DNS (using dnsmasq here via pi-hole)
 +<code bash>vi /etc/hosts</code>
 +<code perl> <IP from nslookup> manifest.googlevideo.com</code>
 +reboot/relaunch dnsmasq
 +
 +===== BLocklist =====
 +<code> https://v.firebog.net/hosts/lists.php?type=all</code>
 +
 +===== 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 /etc/pihole/pihole-FTL.db
 +
 +# flush pihole logs
 +pihole flush
 +
 +# stop pihole FTL service
 +systemctl stop pihole-FTL
 +
 +# delete the FTL database file
 +rm /etc/pihole/pihole-FTL.db
 +
 +# restart pihole FTL service
 +systemctl start pihole-FTL
 +
 +# output reduced pihole db size
 +du -h /etc/pihole/pihole-FTL.db
 +</code>
 +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 **/etc/pihole/pihole-FTL.conf**\\
 +<code bas>
 +# edit pihole-FTD.conf
 +vi /etc/pihole/pihole-FTL.conf
 +</code>
 +Add or edit MAXDBDAYS value in the configuration file as needed
 +<code bash>
 +# restart pihole-FTL server
 +sudo systemctl restart pihole-FTL
 +</code>
 +===== Allowlist =====
 +just do a small file with one domain per line and import