{value 0 - 59} * * * * root /usr/local/scripts/rsyncrbldnsd.sh
Where the OS is FreeBSD and you are editing the /etc/crontab file. If
you are using crontab -e root, please omit the root
word in the above line.
Please replace {value 0 - 59} with a number between 0 and 59, and to minimize the load on the surbl server, try not to use the same number on different servers.
Where rsyncrbldnsd.sh contains:
#!/bin/sh /usr/local/bin/rsync -t some_rsync_server::surbl/*.rbldnsd /usr/local/rbldnsdNote: The above is all on one line, and you'll replace some_rsync_server with the actual rsync server name provided when you are granted access. (To get rsync access to the SURBL zone files, please fill out our rsync access form, and let us know the IP address you will be rsyncing from and the approximate number of incoming messages processed per day.)
#!/bin/sh exec /usr/local/sbin/rbldnsd -n -l +- -bSave and exit, then make the file executable:\ ws.surbl.org:dnset:/usr/local/rbldnsd/ws.surbl.org.rbldnsd \ be.surbl.org:dnset:/usr/local/rbldnsd/be.surbl.org.rbldnsd \ sc.surbl.org:dnset:/usr/local/rbldnsd/sc.surbl.org.rbldnsd \
chmod 755 runThen make a subdirectory called log inside /root/rbldnsd and edit a file called run, add the following information to it:
#!/bin/sh exec /usr/local/bin/multilog t s5000000 n10 /var/log/rbldnsdSave and exit, then make the shell script executable:
chmod 755 runNow cd to /root
mv rbldnsd /serviceYour rbldnsd should now start within 5 seconds.
Verify it is running with:
sleep 5; svstat /service/rbldnsd/
cd /etc/dnscache/root/servers vi be.surbl.orgAdd your IP that your rbldnsd server is running on to the file. The IP should match the IP added to /service/rbldnsd/run file in step 4
Save and exit.
cp be.surbl.org sc.surbl.org cp be.surbl.org ws.surbl.org svc -t /service/dnscache(or restart dnscache if you are not using daemontools).
You should now be running dnscache with it looking at your rbldnsd for the data of be, sc, and ws.surbl.org and looking at the root servers for all other data.