19 Aug 2010 11:55
dnsrbl.c
Nikola Vladov <v20-dnsrbl_c <at> riemann.fmi.uni-sofia.bg>
2010-08-19 09:55:29 GMT
2010-08-19 09:55:29 GMT
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)
RSS Feed