you are viewing a single comment's thread
view the rest of the comments
[–] 1 point 5 hours ago*

My "script" to update the blocklist from time to time was literally

curl <blocklist1 link> > templist
curl <blocklist2 link> >> templist
grep '^0\.0\.0\.0' templist | awk '{print "local-zone: \""$2"\" always_refuse"} > blocklist.conf
systemctl restart unbound.service

and an include blocklist.conf at the bottom of unbound.conf (awk to convert it from the "0.0.0.0 " format to "local-zone: always_refuse").

  • source
  • parent