Alex wrote: > Hi all, > > I'd like to be able to take a domain such as fellass.us and check it > against the same blacklists used by sites like mxtools, except do it > on the command-line. We have our own URIBL for domains that haven't > yet been added to zen or surriel, etc. I'd like to periodically check > my list against theirs to see if it's been added, and whether I should > remove the domain from my list.
Here's the widget I use, on the rare occasions I check a domain against DNSBLs by hand: ==== #!/bin/bash host $1.multi.surbl.org host $1.multi.uribl.com host $1.dbl.dnsbl. host $1.viauri.dnsbl. ==== We have a datafeed subscription for Spamhaus (the dbl line would be dbl.spamhaus.org on public DNS) and viauri is our own local URI blacklist. IP blacklists are tricker because you can't just use the IP as-is but I haven't felt the need to check those by hand often enough to script it. FWIW, I wouldn't remove a local DNSBL entry unless it's proven to be nonspam; it saves the hassle of relisting in response to a customer report including the domain later, that would have been blocked had that entry remained on your local blacklist... -kgd