Nice.
I added it to my periodic scripts, here's the script I used, maybe it's useful to other persons too:
/usr/local/etc/periodic/weekly/510.blcheck
Code:
#!/bin/sh -
#
# If there is a global system configuration file, suck it in.
#
if [ -r /etc/defaults/periodic.conf ]
then
. /etc/defaults/periodic.conf
source_periodic_confs
fi
case "${weekly_blcheck_enable}" in
[Yy][Ee][Ss])
rc=0
echo ""
echo "Checking for DNSBL:"
for i in ${blcheck_ip}; do
echo ""
/bin/sh /root/blcheck.sh ${i}
if [ $? -ge 1 ]; then
rc=$?
fi
done
[ ${rc} -gt 1 ] && rc=1;;
*) rc=0;;
esac
exit $rc
You will need to enable the script in
/etc/periodic.conf, you will also need to specify the IP there with the "weekly_blchecl_ip" variable, you can specify multiple IP's, for example:
Code:
# 510.blcheck
weekly_blcheck_enable="YES"
blcheck_ip="82.93.23.199 76.162.25.203"