Pi Hole basics

A while ago I came across a post about using pi-hole to block ads and secure DNS across my network. Pi-hole is described aas offering a black hole for internet advertisements and it will block known bad domains (and more, depending on the lists you use). As I had an old pi3 floating about I thought I’d give it a try.

How to set up a raspberry pi from scratch is documented elsewhere, once you have done that you need to get everything up to date with

sudo apt-get update


sudo apt-get upgrade

We’re then good to go to install pi-hole:

curl -sSL https://install.pi-hole.net | bash

Follow the on screen prompts and don’t forget to take note of the admin password (you can change this later or disable it if necessary). Pi-hole is now up and running so the final bit of the jigsaw is to make sure all your network devices can use it. Ideally you’ll set a static IP address on your pi-hole then in your router DHCP config set your router to give out the pi’s IP address as the DNS server.

If you browse to the IP address of the pi-hole device you’ll hit the admin dashboard, have a look around and make any changes you want to.