You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
340 B

#!/bin/bash
tail -n +5 /var/lib/rbldns/ahbl-rbldnsd/rhsbl.private.ahbl.org | \
grep '^[[:blank:]]*[^[:blank:]#;:]' |\
cut -d . -f 2- | \
egrep "^(([[:alpha:]](-?[[:alnum:]])*)\.)+[[:alpha:]]{2,}$" \
| grep "\S" \
| sort > /var/www/downloads.ahbl.org/rspamd/ahbl-badrep-domains.map
for i in `ls *.map`; do
rm $i.zst
zstd -19 $i
done