Setting up Pi Hole

As a perfect distraction from responding to referee replies for my latest submission, I brought my unused Pi out from the racks and connected it to my TV, to install pi-hole on it. It is connected to my Archer WiFi 6 and I did have to set up a reserved address on it in router settings, so that the IP assigned by router doesn't dynamically change.

The pieces

  • Pi-Hole User interface Once installed, the Pi-Hole settins become available at http://<pi-ip\>admin.
  • DHCP settings in router My router has to re-direct all the requests to IP address of the Pi in Primary and Secondary DNS settings.
  • Choosing DNS Server In the Pi-Hole settings, I chose cloudflare DNS server but my workplace ISP blocked it quickly, so I left it to custom DNS of router as default.
  • Blocking Instagram via Regular expressions: Just blocking the instagram domains wasn't enough. I could see the queries on my device IP were re-directed to server with domain fbcdn.net, so I added all url's containing it as: (\.|^)fbcdn\.net$ to the deny list.

One of the advatages is now I know all the websites my local wi-fi connected devices communicate with and how frequently. In just a day, it has been more than 0 lakh queries. I plan to link it with my Tailscale network so as to block ads even when I'm not at home in the future.

← All posts