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 timeout seconds or less.
timeout
$num_responded = $res->num_proxies_responded;
Net::DNSBLLookup
TJ Mather, <tjmather@maxmind.com>
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.
To install Net::DNSBLLookup, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::DNSBLLookup
CPAN shell
perl -MCPAN -e shell install Net::DNSBLLookup
For more information on module installation, please visit the detailed CPAN module installation guide.