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.
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.
dnsbls.py -i 22.214.171.124
Will tell you if you are on any of the lists that DNSBLS checks against.
dnsbls.py -i 126.96.36.199 -s
Outputs 1 if you are on a list that DNSBLS checks against, and 0 if you aren’t
dnsbls.py -i 188.8.131.52 -v
Outputs the lists you are on.
dnsbls.py -i 184.108.40.206 -vv
Outputs every list that DNSBLS checks against, and tells you if you are on any of them.
Outputs every list that DNSBLS checks
TIP: -i also resolves hostnames
[email protected]:~# python dnsbls.py -i 220.127.116.11
You are on one of my lists! - Use -v argument to find out what lists.
[email protected]:~# python dnsbls.py -i 18.104.22.168 -v