Nikola Vladov | 19 Aug 2010 11:55
Picon
Favicon

dnsrbl.c

I wrote next for me.  I use ir to test if IP(s) is in RBL list.
Maybe it is useful for some people

Enjoy, Nikola

-------------------------------------------------------
/* dnsrbl.c
   save me under dnstxt.c in djbdns-1.05 and recompile.
   then: mv dnstxt dnsrbl
   or
   diet -Os gcc -Wall -W -DUSE_LIBOWFAT -s -o dnsrbl dnsrbl.c -lowfat

   author: Nikola Vladov
   http://riemann.fmi.uni-sofia.bg/programs/
   See some examples at the end of this file!
*/

#define MAX_RBL_CONNECTIONS	10
#define RBLSERVERS \
	"sbl.spamhaus.org\n" \
	"xbl.spamhaus.org\n" \
	"zen.spamhaus.org\n" \
	"dnsbl.njabl.org\n" \
	"bl.spamcop.net\n" \
	"cbl.abuseat.org\n" \
	"spam.dnsbl.sorbs.net"

#include "dns.h"
#include "fmt.h"
#include "scan.h"
(Continue reading)


Gmane