Sunday, April 29, 2007

Net::Abuse::Utils - Routines useful for processing network abuse


Net::Abuse::Utils - Routines useful for processing network abuse - search.cpan.org

Net::Abuse::Utils - Routines useful for processing network abuse

Net::Abuse::Utils provides serveral functions useful for determining information about an IP address including contact/reporting addresses, ASN/network info, reverse dns, and DNSBL listing status.
FUNCTIONS
The following functions are exportable from this module. You may import all of them into your namespace with the :all tag.
get_asn_info ( IP )
Returns a list containing (ASN, Network/Mask, CC code, RIR, modified date) for the network announcing IP.
get_as_description ( ASN )
Returns the AS description for ASN.
get_soa_contact( IP )
Returns the SOA contact email address for the reverse DNS /24 zone containing IP.
get_ipwi_contacts( IP )
Returns a list of all email addresses found in whois information for IP with duplicates removed.
get_rdns( IP )
Returns the reverse PTR for IP.
get_dnsbl_listing( IP, DNSBL zone )
Returns the listing text for IP for the designated DNSBL. DNSBL zone should be the zone used for looking up addresses in the blocking list.
get_ip_country( IP )
Returns the 2 letter country code for IP.
get_asn_country( ASN )
Returns the 2 letter country code for ASN.
get_abusenet_contact ( domain )
Returns the abuse.net listed contact email addresses for domain.
is_ip ( IP )
Returns true if IP looks like an IP, false otherwise.