Get information about listed ip-addresses. A POST request is required for this to work (officially). However, one (unsupported) command does the same: /3.0/dnsbl/request/ip/<address>
|ip||Address list (arrays allowed)|
Array or associative array containing special requests. For example:
Adding a resolve-flag to the request will generate another output in the response array, with the resolved hostname in the blacklist.
As you can see, one of the hosts above are also marked as deleted by the deleted-string. This means that is has been removed from the DNS service and therefore won't shop up in a DNS request. This kind of flags is used to show - in removal tools - that the host has been listed but is now removed.
Looking for networks (CIDR-scanning)
If you need to look for addresses in a larger network, without requesten each one manually, you can request a list with addresses for a specific CIDR-block. If a network is smaller than a CLASS A network (/8 CIDR-blocks, with a count of 16777216 addresses, consumes too much output data to be healthy for the system) the request will give a whole lot of results in the response.
It is only your imagination (or your network) that sets the search limit here, as long as you keep yourself over the CIDR-block limit. This feature does not exist in APIv2.
For ipv6, something like this should work:
As IPv6 networks are still friendlier the prefix length does not consume as much power as IPv4 ranges even if a /32-range in the IPv6 world is about 79228162514264337593543950336 addresses.
Can I add or delete CIDR-block based ranges?
No. Not in the current state. As the system is based on DNS requests, such API calls would fill the database with way too much information.
It is possible to add extra flags to some requests (as mentioned above). For example, to get a "getListed"-response with the resolved hosts of the blacklisted addresses, you can for example send a request like this:
The output response will in this case transform into:
Where hasResolveFlag set to 1 (true) to tell the remote requester that the boths keys resolve and lastResolve will contain a resolved hostname of the ip-address. The resolve-key is a realtime hostname resolve of the ip-addresser and the lastResolve-key indicates what hostname the address had the last time it was resolved in unix timestamp formatting (hosts are periodically checked this way as a way to handle special whitelisting cases). The unix timestamp are returned in the key lastResolveTime.
When the API find no blacklisted hosts
As of APIv3, exceptions are thrown in the response interface if nothing is found as listed. This should make it easier to detect errors together with unlisted addresses, instead of looking for empty response arrays. This is what's thrown, when this occurs.