/dnsblcheck

Reads one or more DNSBL hosts from stdin and checks if the IP address is listed

Primary LanguageGoMIT LicenseMIT

dnsblcheck, reads one or more DNSBL hosts from stdin and checks if the IP address is listed

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.

Installation

You need a working Go installation to compile dnsblcheck.

git clone https://github.com/c-rack/dnsblcheck
cd dnsblcheck
go build

Usage

cat dnsbl.txt | ./dnsblcheck 127.0.0.1

License

Copyright (C) 2013 Constantin Rack

Licensed under the MIT License.