[Bug 274027] dns/void-zones-tools: Now kills unbound. Needs to be updated from upstream.
Date: Fri, 22 Sep 2023 17:49:41 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274027 --- Comment #1 from Robert William Vesterman <bob@vesterman.com> --- For the benefit of anyone else who may run into this problem, here's what I've done on my machine as a workaround until the port can be updated: ================================ (1) Deleted /usr/local/etc/void-zones-tools/mdl_void_hosts.txt, which is the problematic file that void-zones-tools retrieves from malwaredomainlist.com. The next time the update script is run, though, it would just recreate the file, so: (2) Copied the update script, /usr/local/bin/void-zones-update.sh, to /usr/local/bin/void-zones-update.bobmodtmp.sh. (3) Modified the new /usr/local/bin/void-zones-update.bobmodtmp.sh as follows, getting rid of references to mdl_void_hosts.txt, so that the update script won't recreate the file: $ diff void-zones-update.sh void-zones-update.bobmodtmp.sh 64d63 < $FETCH -o "$ZONES_DIR/mdl_void_hosts.txt" "http://www.malwaredomainlist.com/hostslist/hosts.txt" 83,86d81 < if [ ! -f "$ZONES_DIR/mdl_void_hosts.txt" ] ; then < echo "# No hosts from mdl." > "$ZONES_DIR/mdl_void_hosts.txt" < fi < 109d103 < "$ZONES_DIR/mdl_void_hosts.txt" \ $ (4) To get unbound to start up, modified /usr/local/etc/unbound.conf by commenting out the line that makes unbound pay attention to the void zones list: # include: /var/unbound/local-void.zones (5) Started up unbound. (6) Ran /usr/local/bin/void-zones-update.bobmodtmp.sh. (7) Backed out the change to /usr/local/etc/unbound.conf, so that it will go back to paying attention to the void zones list: include: /var/unbound/local-void.zones (8) Restarted unbound. (9) Changed my cron job that runs the void zones update script to run my new one instead: #37 07 * * * (/usr/local/bin/void-zones-update.sh; service unbound restart) | mail -s "Void zones update" bob@vesterman.com 37 07 * * * (/usr/local/bin/void-zones-update.bobmodtmp.sh; service unbound restart) | mail -s "Void zones update (with bonus kludginess\!)" bob@vesterman.com ======================= When the port is updated, you can just change your cron job back to use the normal /usr/local/bin/void-zones-update.sh script. At that point you could also delete the modified one (/usr/local/bin/void-zones-update.bobmodtmp.sh), but doing so isn't really necessary. -- You are receiving this mail because: You are the assignee for the bug.