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


Net-DNSBLLookup documentation  | view source Contained in the Net-DNSBLLookup distribution.

Index


NAME

Top

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

SYNOPSIS

Top

  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

Top

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

Top

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

Top

Net::DNSBLLookup

AUTHOR

Top

TJ Mather, <tjmather@maxmind.com>

COPYRIGHT AND LICENSE

Top


Net-DNSBLLookup documentation  | view source Contained in the Net-DNSBLLookup distribution.