Mar 042013
 

Link to dnsbls.tar.gz

DNSBLS – An easy-to use DNS blacklist checker.
Requirements: Python 2.7.3
Written by: MadsRC @ 2012 – Released under the GNU GPLv3

————————–

DNSBLS came into existence as I had a need to regularly check certain mailserver for DNS blacklisting.

To use the script, simply execute it. First timers are encouraged to execute it with the argument -h to learn it’s syntax.

If you feel the need to add one or more DNS blacklists to the script, simply add it to the list defined in the script. Same goes for removing dns blacklists.

————————–

WHAT IT IS & HOW IT SHOULD BE USED:
This is a tool that checks a specified list of 457 DNS blacklists, one at a time, and gives returns different formatted values to you. That is the short version.

Long version:
This tool was first created to check a few DNS spam blacklists, but now, by standard, checks any DNS blacklist that it is given. It is written to do one thing, check RBL blacklists, and it does that damn well. What you decide to do with the output is entirely up to you. It will take either an IP or hostname as input (argument -i) which it will then validate and run it through the list of DNS blacklists and give you some form of output. It can be as simple as telling you 1 if your on a list, or 0 if your not on a list or it can output the lists you’re on plus that lists “code” for what your input is on it for.

————————–

Examples:

dnsbls.py -i 1.2.3.4
Will tell you if you are on any of the lists that DNSBLS checks against.

dnsbls.py -i 1.2.3.4 -s
Outputs 1 if you are on a list that DNSBLS checks against, and 0 if you aren’t

dnsbls.py -i 1.2.3.4 -v
Outputs the lists you are on.

dnsbls.py -i 1.2.3.4 -vv
Outputs every list that DNSBLS checks against, and tells you if you are on any of them.

dnsbls.py -l
Outputs every list that DNSBLS checks

TIP: -i also resolves hostnames

[email protected]:~# python dnsbls.py -i 72.52.130.201
You are on one of my lists! - Use -v argument to find out what lists.
[email protected]:~# python dnsbls.py -i 72.52.130.201 -v
abuse-contacts.abusix.org 127.0.0.1
niku.2ch.net 127.0.0.2
all.ascc.dnsbl.bit.nl 127.0.0.160
all.dnsbl.bit.nl 127.0.0.2
ipv6.all.dnsbl.bit.nl 127.0.0.2
origin.asn.cymru.com 127.0.0.2
peer.asn.cymru.com 127.0.0.2
list.dnswl.org 127.0.5.0
vote.drbl.gremlin.ru 127.0.0.2
work.drbl.gremlin.ru 127.0.0.2
rep.mailspike.net 127.0.0.18
wl.mailspike.net 127.0.0.18
list.quorum.to 127.0.0.4
blackholes.scconsult.com 127.0.0.2
origin.asn.spameatingmonkey.net 127.0.0.2
dbl.spamhaus.org 127.0.1.255
pdl.pan-am.ca 127.0.0.3
vox.schpider.com 127.0.0.2
l2.apews.dnsbl.uceprotect.net 127.0.0.2
ybl.megacity.org 127.0.0.2

Link to dnsbls.tar.gz

 Posted by at 10:53 am

Sorry, the comment form is closed at this time.