Net::DNSBLLookup::Result - Analyze the DNS Blocklist lookup results
use Net::DNSBLLookup; my $dnsbl = Net::DNSBLLookup->new(timeout => 5); my $res = $dnsbl->lookup($ip_addr); my ($proxy, $spam, $unknown) = $res->breakdown; my $num_responded = $res->num_proxies_responded;
The class represents objects returned by the lookup method of Net::DNSBLLookup. Currently it supports the breakdown between the number of Open Proxy and Spam hosts, as well as the number of DNS Blocklist servers that actually responded.
Returns the breakdown between the number of Open Proxy and Spam/Open Relay hosts. It also returns the number of hits that are unknown - for example the DSBL blocklist lumps all Open Proxy and Spam results into one code.
($proxy, $spam, $unknown) = $res->breakdown;
Returns the total number of DNS Blocklists that responded to our queries within
timeoutseconds or less.
$num_responded = $res->num_proxies_responded;
TJ Mather, <firstname.lastname@example.org>
Copyright 2003 by MaxMind LLC
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.