blq - Inquire an email block list server.
blq [list-id-or-zone[, ...]] host-name-or-address
Several organizations publish mail abuse lists via DNS.
blq inquires those lists to determine if a particular host
The list-id-or-zone selects which list to query. It may
be the full DNS zone of the block list (such as
"rbl.maps.vix.com"), one of a number of pre-defined IDs
(see below), or a list (comma or space delimited) of these
items. As distributed, the pre-defined set of IDs
rrss rss (for back compatibility)
all (all the above)
If not specified, the default list-id-or-zone is rbl.
The host-name-or-address is the query to perform,
specified either as a name or IP address. All the block
lists are indexed by address, not name. Thus, a given
hostname will be resolved to an address for the query.
If a name resolves to multiple addresses, they all will be
The output contains three colon-delimited fields, and
looks something like:
blackholes.mail-abuse.org : 192.168.117.89 relay.spamhausen.com : BLOCKED
The first field lists the zone queried. The second field
lists the query: the host address followed by the name it
resolves to. The third field lists the result: "ok" if
the host is not listed or "BLOCKED" if it is.
An exit status of zero indicates the host was not listed
("ok"). An exit status of two indicates that it was
listed ("BLOCKED"). Any other non-zero exit status is an
Even though I included support for ORBS and IMRSS, I do
not support their use for email filtering. I do use the
others, but I urge you to visit their web pages, read
their policies, and decide for yourself.
$Id: blq,v 1.8 2000/06/05 20:54:13 chip Exp $
See http://www.unicom.com/sw/#blq for latest version.