How To Check DNS Blacklist Entries

Posted by: admin  :  Category: Bits and Bytes

In case you ever happen to be listed on a DNS blacklist you’ll propably find it useful checking for the actual DNS reply.
The point is that many popular blacklists usually provide information and database checks on their websites, however the latter one very often do not reflect current entries withint the blacklist.

So, the way to go is either using ‘host’, ‘dig’ or ‘nslookup’. Requested addresses must be specified equally as if you were actually searching for a reverse entry (PTR).

In the example given, the IP address “192.168.0.1” (reversed 1.0.168.192) is assumed, while ‘ns.of.choice’ is a synonym for your local nameserver.

So a query for ‘dig’ might look like this (output stripped a little):

#dig 1.0.168.192.blacklist.domain.tld @ns.of.choice ANY
;; QUESTION SECTION:
;1.0.168.192.blacklist.domain.tld. IN ANY

;; ANSWER SECTION:
1.0.168.192.blacklist.domain.tld. 3600 IN A 127.0.0.6
1.0.168.192.blacklist.domain.tld. 3600 IN TXT “sample for typical rbl message”

The same query for the ‘host’ command:

#host -t any 1.0.168.192.blacklist.domain.tld ns.of.choice
Using domain server:
Name: ns.of.choice
Address: 192.168.1.1#53
Aliases:

1.0.168.192.blacklist.domain.tld has address 127.0.0.6
1.0.168.192.blacklist.domain.tld descriptive text “sample for a typical rbl message”
And the same again using ‘nslookup’:

#nslookup -class=any 1.0.168.192.blacklist.domain.tld ns.of.choice
Server: ns.of.choice
Address: 192.168.1.1#53

Name: 1.0.168.192.blacklist.domain.tld
Address: 127.0.0.6
1.0.168.192.blacklist.domain.tld text = “sample for typical rbl message”

You may also choose to query any authoritative nameserver of the blacklist in particular (refer to authority section or the SOA records respectively), since querying your local name-server may be not be accurate due to TTL intervals.

CompleteWhois also provides a conventient interface for searching multiple RBL’s at once.

4 Responses to “How To Check DNS Blacklist Entries”

  1. Flexsin Says:

    Hi,

    How can i check a domain or website URL is black listed or not, if the website hosted on a shared server.

    Thanks,

  2. neddy Says:

    This is a little off track, but i was reading through your tutorial, and thought that i might mention that i use w3dt.net to run blacklist checks on my domains, by just entering in the domain name, and letting it return the blacklist codes on a good 100 or so known blacklists…

    http://w3dt.net/tools/arbl/
    is the page, in case anyone else is interested.

    — Neddy.

  3. Sherry Says:

    Interesting tutorial just over my head! I tried the URL that Neddy suggested and it worked for me. Thanks to both of you.

  4. Adrian Says:

    Check this one http://www.myiptest.com/staticpages/index.php/check-blacklisted-domain-URIBL