dnsblcheck is a command-line utility written in Go to check if an IP address is listed at a DNS-based Blackhole List (DNSBL).
An example list of DNSBL hosts is included (original source).
If the IP address is listed, the DNS TXT record is printed to stdout and program exits with status code 1.
You need a working Go installation to compile dnsblcheck.
git clone https://github.com/c-rack/dnsblcheck
cd dnsblcheck
go build
cat dnsbl.txt | ./dnsblcheck 127.0.0.1
Copyright (C) 2013 Constantin Rack
Licensed under the MIT License.