On Mon, 2 Jun 2003, Bill Cole wrote: > > You need both Net::CIDR and Net::CIDR::Lite perl modules to make this > work. You should probably put both files in /usr/local/bin and only > run them as root. BIND should be running for bladd to work. There are > paths and hostnames and such hardcoded into both scripts that you > will need to change. These programs will eat your dog, rape your cat, > and mutilate your children. You have been warned, so don't you dare > blame me for whatever happens. You asked for it.
Running something you don't trust as root is crazy! That is an odd suggestion, given your technical accumen... I have a script that I use to update my djb rbldns blacklist from a mysql database every two hours (it pulls the info out of the db every two hours via cron). The rbldns file format is SOOO much simpler than a BIND zone file. In fact it can be as simple as one ip per line in a text file... Otherwise it is one line with the ip and the next line with the result ip (127.0.0.2) and a text message. This is the beauty of the djbdns software. It is very easy to script with. The script supports ips stored in the form of: aaa.bbb.ccc.ddd (one ip or /32) aaa.bbb.ccc (256 ips or /24) aaa.bbb (65xxx ips or /16) It would be easy for anyone who knows much about perl to set it up to support arbitrary netmasks. I use the same DB for realtime blocking via postfix with a direct mysql query; this limits me to these forms, but it has not been a problem. If anyone is interested in this let me know. I can post it after I pull out my db passwords ;-) It uses perl DBI. -- Joe Laffey | Want to convert subnet masks between different LAFFEY Computer Imaging | notations, or figure the number of IPs in a block? St. Louis, MO | Whatmask-It's FREE - www.laffeycomputer.com/wm.html ------------------------------------------------------------------------------ ############################################################# This message is sent to you because you are subscribed to the mailing list <[EMAIL PROTECTED]>. To unsubscribe, E-mail to: <[EMAIL PROTECTED]> To switch to the DIGEST mode, E-mail to <[EMAIL PROTECTED]> To switch to the INDEX mode, E-mail to <[EMAIL PROTECTED]> Send administrative queries to <[EMAIL PROTECTED]>
