-
Notifications
You must be signed in to change notification settings - Fork 10
RBLDNS Export
Marco Favero edited this page Jan 19, 2017
·
20 revisions
Ok, you have installed the RBL system and you have populated the lists. Now, you want to export them in RBLDNS formatted files. You must know what RBLDNSD is, and how the zone files work.
Well, go to contrib/rbldns
and run exportdns.php
with
-f <file zone header>
-t <list name>
By default we provide a conf.default
header file. You can customize it using also these special words:
-
{rblname}
: is replaced by the DNSBL name specified in -t flag -
{rbltype}
: is replaced by the list type (the $field in $tables of config.php) -
{year}
: the current year -
{unixtimestamp}
: the current unix timestamp
You can export the list via crontab. For instance:
# Run export of DNSBL every 30 minutes`
*/30 * * * * root cd /usr/local/RBL/contrib/rbldns/myrbl; ../exportdns.pl -f ../conf.default -t 'White IP'
*/30 * * * * root cd /usr/local/RBL/contrib/rbldns/myrbl; ../exportdns.pl -f ../conf.default -t 'Spam IP'
Probably you would store these files in a Rsync server folder to let them available to the RBLDNS host through Rsync.
Sorry, currently I have only tested the export of IP lists. The export of networks or domains already works, or it will work with some arrangement.