Setup your own DNS AdBlock – Pi-Hole 1


Pi-Hole. It sounds a bit different than what you’d think they would call a DNS Adblocker but nevertheless we press onwards. Pi-Hole is a DNS Adblocker, it works by being the DNS server for your devices and blocking adverts before they ever reach your laptop, phone, tablet – you name it!

I cam across this out of the blue and noticed how fantastic of a concept it was, you could potentially run this anywhere with a Debian based operating system. But you would probably gain a lot of DNS requests from strangers. Because of the risks associated with Open DNS servers I decided to run this on a Raspberry Pi running Raspbian.

Some of the other benefits of using this for your Raspberry Pi include:

  • Simple to install
  • Seeing all DNS queries made and having control over these.
  • Whitelist
  • Blacklist
  • Total domains blocked and ads blocked per day
  • Save bandwidth by getting adverts blocked before they reach your devices.

Installation of Pi-Hole:

    1. Connect to your Raspberry Pi via Ethernet
    2. SSH login to your Raspberry Pi via the IP address assigned
    3. Once in SSH type the following command:
    4. All installed! Login to the Pi-Hole interface on: http://YOUR-IPADDRESS:8080/
    5. Set your devices DNS Server to Raspberry PI IP Address listed upon installation completion.

Within the installation it asks you if you want to use other DNS services for other requests and it is probably best to select Google at this point.

Screenshots of Pi-Hole:

pi-hole

Conclusion:

The software itself is very easy to work with, the interface is simple. If you want to try this it is a great project to help you understand how much DNS traffic you get and what percentage is potentially wasted. The unfortunate thing was that an ethernet cable was required. Unfortunately this did not allow me to setup DNS over Wi-Fi.

Unfortunately using Pi-Hole can also cause problems with streaming from ITV, Channel 4 and other streaming websites with adverts. Because of this it is therefore difficult to avoid problems without changing the DNS back to your ISP or other public DNS when streaming.

For more information about Pi-Hole please visit here!

Matthew's Rating:

Leave a Reply

One thought on “Setup your own DNS AdBlock – Pi-Hole