ndrut / node-dnsbl

A DNSBL server and RBL Checker client written in node.js
19 stars 5 forks source link

node-rblchecker

Server (rbl-server.js):

Update the values in config.json:

{
    "listenHost": "0.0.0.0",                // Listening host
    "listenPort": "53",                     // Listening port (DNS requests default to port UDP 53)
    "hostBase": "rbl.iheardyouliek.com",    // The base hostname requests will be prepended to.
    "standardResponse": "127.0.0.2",        // The response returned when there's a match.
    "logfile": "./access.log"               // Path to the file used for logging.

}

Example output:

[root@desktop andrew]# host 2.0.0.127.rbl.iheardyouliek.com
2.0.0.127.rbl.iheardyouliek.com has address 127.0.0.2
[root@desktop andrew]# dig txt 2.0.0.127.rbl.iheardyouliek.com +short
"cbl.abuseat.org"
"multi.surbl.org"
"bl.spamcannibal.org"
"spam.abuse.ch"
"b.barracudacentral.org"
"bl.spamcop.net"
"spam.dnsbl.sorbs.net"
"dnsbl.sorbs.net"

Supported RBL's:

TODO

Client (rbl.js):

Ran from cli:

rbl.js

[root@phoenix rbl]# ./rbl.js 127.0.0.2
Barracuda has your IP on it's blacklist!
SpamCop has your IP on it's blacklist!
Sorbs Aggregate Zone has your IP on it's blacklist!
Composite Blocking List has your IP on it's blacklist!
Sorbs spam.dnsbl Zone has your IP on it's blacklist!
Spam Cannibal has your IP on it's blacklist!
Multi SURBL has your IP on it's blacklist!
dnsbl.abuse.ch has your IP on it's blacklist!