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.
use BGPmon::CPM::Prefix::Finder
expandDomainToIPs expandWhois expandIP orghandle2nets netname2prefixes inetnum2prefixes
Input: Array of IP addresses Output: Hash of Prefixes
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"
This subroutine expands an inetnum into a list of prefixes that cover the space.
Input: inetnum Output: array of prefixes
This subroutine expands a netname to a list of prefixes
Input: source and netname Output: array of prefixes
Input: orghandle Output: array of nets
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'
Catherine Olschanowsky, <cathie at cs.colostate.edu>
<cathie at cs.colostate.edu>
Please report any bugs or feature requests to <bgpmon@netsec.colostate.edu>.
<bgpmon@netsec.colostate.edu>
You can find documentation for this module with the perldoc command.
perldoc BGPmon::CPM::Prefix::Finder
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
To install BGPmon::CPM::Prefix::Finder, copy and paste the appropriate command in to your terminal.
cpanm
cpanm BGPmon::CPM::Prefix::Finder
CPAN shell
perl -MCPAN -e shell install BGPmon::CPM::Prefix::Finder
For more information on module installation, please visit the detailed CPAN module installation guide.