Or if you already run dsnmasq you can:

- uncomment this in your dnsmasq.conf:

        addn-hosts=/etc/banner_add_hosts
- put this in a file in /etc/cron.daily:

        wget -O /etc/banner_add_hosts 'https://pgl.yoyo.org/adservers/serverlist.php?showintro=0&mimetype=plaintext'
yep, i do this on my edge OPNSense appliance, except with

https://github.com/StevenBlack/hosts