03 Apr 2009 23:01:54 UTC
- Distribution: Net-DNSBLLookup
- Source (raw)
- Browse (raw)
- How to Contribute
- Testers (826 / 0 / 0)
- KwaliteeBus factor: 0
- 49.28% Coverage
- License: unknown
- Activity24 month
- Download (4.81KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
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.
Module Install Instructions
To install Net::DNSBLLookup, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Net::DNSBLLookup
For more information on module installation, please visit the detailed CPAN module installation guide.