So after setting up my PI, I installed Pi-hole for my network on it.
First you ssh to it:
sudo vi /etc/dhcpcd.conf # set static IP; save and exit # change to root sudo su curl -sSL https://install.pi-hole.net | bash
- When I did this, the installer wasn’t able to continue because I had changed the IP address of the pi. I then had to modify /etc/dhcpcd.conf and /etc/resolv.conf to also point to 126.96.36.199 for DNS since it cleared it and set everything to only point to 127.0.0.1. I then re-ran the installer for it to setup completely.
At the end of the install it gives you the admin password, copy it somewhere. Then type:
pihole -a -p
Configure router to point to pi – This will vary from vendor to vendor but you typically login to your routers LAN interface in your web browser, then go to lan settings – and set the DNS server handed by DHCP to that of your pi-hole.
pihole -b example.com – Adding a site to blacklist pihole -wild example.com – Adding a site and all its subsites to blacklist pihole -w example.com – Adding a site to whitelist pihole -wild -d pubnub.com – Remove a blacklist pihole -up – update it pihole -c – shows stats pihole status – shows stats pihole -q hulu – to query a specific domain pihole disable / enable – Self explanatory pihole restartdns – restart dns server
If you want to block Youtube, add the following to your blacklist section:
(^|\.)googlevideo\.com$ (^|\.)youtube\.com$ (^|\.)ytimg\.l\.google\.com$
Recommended blocklists to add: