NAME

Net::DNSBLLookup::Result - Analyze the DNS Blocklist lookup results

SYNOPSIS

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;

DESCRIPTION

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.

METHODS

breakdown

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;
num_responded

Returns the total number of DNS Blocklists that responded to our queries within timeout seconds or less.

$num_responded = $res->num_proxies_responded;

SEE ALSO

Net::DNSBLLookup

AUTHOR

TJ Mather, <tjmather@maxmind.com>

COPYRIGHT AND LICENSE

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.