Тема: Как проверить не заблокирован ли IP в DNSBL через командную строку

По стандарту IP 127.0.0.1 всегда не заблокирован, а 127.0.0.2 всегда заблокирован.

$ dig txt 2.0.0.127.zen.spamhaus.org
; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6_4.6 <<>> txt 2.0.0.127.zen.spamhaus.org
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 17133
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 21, ADDITIONAL: 0
;; QUESTION SECTION:
;2.0.0.127.zen.spamhaus.org.    IN    TXT
;; ANSWER SECTION:
2.0.0.127.zen.spamhaus.org. 287    IN    TXT    "http://www.spamhaus.org/sbl/query/SBL233"
2.0.0.127.zen.spamhaus.org. 287    IN    TXT    "http://www.spamhaus.org/query/bl?ip=127.0.0.2"
;; AUTHORITY SECTION:
zen.spamhaus.org.    72496    IN    NS    5.ns.spamhaus.org.
zen.spamhaus.org.    72496    IN    NS    b.ns.spamhaus.org.
zen.spamhaus.org.    72496    IN    NS    7.ns.spamhaus.org.
zen.spamhaus.org.    72496    IN    NS    8.ns.spamhaus.org.
zen.spamhaus.org.    72496    IN    NS    t.ns.spamhaus.org.
zen.spamhaus.org.    72496    IN    NS    h.ns.spamhaus.org.
zen.spamhaus.org.    72496    IN    NS    o.ns.spamhaus.org.
zen.spamhaus.org.    72496    IN    NS    f.ns.spamhaus.org.
zen.spamhaus.org.    72496    IN    NS    g.ns.spamhaus.org.
zen.spamhaus.org.    72496    IN    NS    k.ns.spamhaus.org.
zen.spamhaus.org.    72496    IN    NS    i.ns.spamhaus.org.
zen.spamhaus.org.    72496    IN    NS    2.ns.spamhaus.org.
zen.spamhaus.org.    72496    IN    NS    q.ns.spamhaus.org.
zen.spamhaus.org.    72496    IN    NS    3.ns.spamhaus.org.
zen.spamhaus.org.    72496    IN    NS    0.ns.spamhaus.org.
zen.spamhaus.org.    72496    IN    NS    a.ns.spamhaus.org.
zen.spamhaus.org.    72496    IN    NS    d.ns.spamhaus.org.
zen.spamhaus.org.    72496    IN    NS    c.ns.spamhaus.org.
zen.spamhaus.org.    72496    IN    NS    x.ns.spamhaus.org.
zen.spamhaus.org.    72496    IN    NS    l.ns.spamhaus.org.
zen.spamhaus.org.    72496    IN    NS    r.ns.spamhaus.org.
;; Query time: 2 msec
;; SERVER: 92.61.35.2#53(92.61.35.2)
;; WHEN: Tue Jan 14 16:14:47 2014
;; MSG SIZE  rcvd: 494