Lightweight ad-blocking with dnsmasq and Raspberry Pi

Alex Ellis
11 min readAug 7, 2020

Did you know that you can put that spare Raspberry Pi of yours to work as a caching DNS server and ad-blocker using off-the-shelf packages for Linux?

Stop adverts and the privacy invasion caused by behavioural trackers

Now, first of all let’s get something out of the way. Many of us will be aware of the open source project written in PHP called “PiHole.” PiHole automates dnsmasq and adds a UI dashboard on top, so that you can geek out over…