The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

BGPmon::CPM::Prefix::Finder - BGPmon Prefix Search Subroutines

This modules enables the expansion of domain names into a series of related IP addresses and prefixes.

SYNOPSIS

use BGPmon::CPM::Prefix::Finder

EXPORT

expandDomainToIPs expandWhois expandIP orghandle2nets netname2prefixes inetnum2prefixes

SUBROUTINES/METHODS

expandWhois

  Input: Array of IP addresses
  Output: Hash of Prefixes

expandIP

This subroutine looks into the whois databases and Input: ip address Output: a hash with as many of the following keys as possible "netname","inetnum","descr","country","orgid","source","netname", "orgname","orghandle"

inetnum2prefixes

This subroutine expands an inetnum into a list of prefixes that cover the space.

Input: inetnum Output: array of prefixes

netname2prefixes

This subroutine expands a netname to a list of prefixes

Input: source and netname Output: array of prefixes

orghandle2nets

Input: orghandle Output: array of nets

expandDomainToIPs

Expands a domain name to a list of IPs. The expansion can be controlled throug the following options. follow_NS => include name servers in the expansion follow_CNAME => include domain names linked through CNAMES follow_MX => include mail exchange servers follow_SOA => include the primary authoritative nameserver only_A => only include IPv4 only_AAAA => only include IPv6 By default the code follows all of the above record types and includes both IPv4 and IPv6 IP addresses.

Input: a domain name Output: a hash of IP addresses each IP address has 2 hashes associated with it 1. 'domains' and 2. 'search_strings'

AUTHOR

Catherine Olschanowsky, <cathie at cs.colostate.edu>

BUGS

Please report any bugs or feature requests to <bgpmon@netsec.colostate.edu>.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc BGPmon::CPM::Prefix::Finder

LICENSE AND COPYRIGHT

Copyright (c) 2012 Colorado State University

    Permission is hereby granted, free of charge, to any person
    obtaining a copy of this software and associated documentation
    files (the "Software"), to deal in the Software without
    restriction, including without limitation the rights to use,
    copy, modify, merge, publish, distribute, sublicense, and/or
    sell copies of the Software, and to permit persons to whom
    the Software is furnished to do so, subject to the following
    conditions:

    The above copyright notice and this permission notice shall be
    included in all copies or substantial portions of the Software.

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
    EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
    OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
    NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
    HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
    WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
    FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
    OTHER DEALINGS IN THE SOFTWARE.\

    File: Finder.pm

    Authors:  Cathie Olschanowsky
    Date: September 21, 2012