User Tools

Site Tools


config:pi-hole

This is an old revision of the document!


Pi-Hole

sudo apt-get install gamin -y
sudo curl -sSL https://install.pi-hole.net | bash

continue with OK, but note the admin password on the last screen.

edit the file /etc/pihole/adlists.list, put your new block lists there, save and exit.
Then update gravity (pulls in all the domains on the new block lists) with pihole -g
add lists (admin → group management → adlists:

https://firebog.net
https://hosts.oisd.nl
https://github.com/mmotti/pihole-regex/blob/master/regex.list

Test

dig @<piholeServerIp> blockedsite.com

Flush dns

sudo systemd-resolve --flush-caches # Ubuntu
ipconfig /flushdns # Windows

Blacklist – regex blocks

Youtube ads: .*sn-\S{4,}-\S{4,}\.googlevideo\.com
Youtube.com: (\.|^)(youtu\.?be.*|googlevideo\.com)$

Change admin password

sudo pihole -a -p
config/pi-hole.1655898428.txt.gz · Last modified: 2023/05/29 11:53 (external edit)