I have a pi-hole running in my home network, but when traveling, connecting to it through a VPN is too slow. I found maza, which uses dnsmasq and a blacklist to block ads on a website. It didn’t work with the instructions in the readme, so here’s how to set it up on Linux:

curl -o maza && chmod +x maza && sudo mv maza /usr/local/bin

Update maza to get a blacklist and a dnsmasq.conf:

maza update

Create a symlink the dnsmasq.conf:

sudo ln -s $HOME/.maza/dnsmasq.conf /etc/dnsmasq.d/maza.conf

Restart dnsmasq and start maza:

sudo systemctl restart dnsmasq.service && sudo maza start

Check this page to see if it’s working.