
How To Use Pi-Hole To Block Adverts On A Local Network
This video covers installing and using Pi-Hole, a DNS Sinkhole on Ubuntu, Raspberry Pi OS, and Debian in order to block adverts on an entire local network.
https://pi-hole.net/
Step 1. Install Pi-hole Dependencies.
Open a Terminal window and run the following commands to update the system and install curl.
sudo apt update && sudo apt upgrade -y
sudo apt install curl
Next, set a static IP Address.
For example, in Ubuntu, navigate to Settings / Network / Wired / IPv4 / Manual and specify the IP address, Subnet mask, Gateway and DNS server.
Step 2. Install Pi-hole.
https://github.com/pi-hole/pi-hole/#one-step-automated-install
Open a Terminal and type the following command:
curl -sSL https://install.pi-hole.net | bash
Step 3. Set Pi-hole Network Wide.
Open up your routers web interface, navigate to the DNS Server settings and change the address to match the static IP Address assigned to Pi-Hole.
Reboot your router once done.
Step 4. Configure Pi-hole.
Pi-Hole can be configured through the web interface at http://pi.hole/admin/
Step 5. Update Pi-Hole.
Open up a Terminal window and run the following command.
pihole -up
#pi-hole #adblocking #linux