Net::DNS::Method::Hash - Perl extension to provide static mapping of RRs to IP addresses
use Net::DNS::Method::Hash; my $Hash = new Net::DNS::Method::Hash { BaseDomain => 'hashdomain.com', Hash => $ref_to_hash, };
This class supports the specification of large amounts of RRs under the zone specified as the BaseDomain option. The RRs have the generic form
BaseDomain
<key>.<BaseDomain> <RR DATA> <key> <RR DATA>
for example,
key-to-the-hash.hashdomain.com 30 IN TXT "Some weird host"
would be produced by a hash such as
{ 'key-to-the-hash' => '30 IN TXT "Some weird host"', }
The RRs are specified using a reference to a hash whose left-hand side is the name of the RR and its right-hand side is either the RR data to be fed to Net::DNS::RR or a reference to a list of RR data strings.
Only RRs of matching type will be returned to a DNS query, with the exception of an 'ANY' query, for which all available RRs will be returned.
None by default.
$Id: Hash.pm,v 1.2 2002/10/23 04:43:58 lem Exp $
Original version; created by h2xs 1.20 with options
-ACOXfn Net::DNS::Method::Hash -v 1.00
Modified the match, to make it lookup the name with or without the domain.
Merging for first public distribution.
Used AUTOLOAD to automatically support all the RRs that Net::DNS supports.
AUTOLOAD
Luis E. Munoz <luismunoz@cpan.org>
perl(1), Net::DNS::Method(3).
To install Net::DNS::Method, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::DNS::Method
CPAN shell
perl -MCPAN -e shell install Net::DNS::Method
For more information on module installation, please visit the detailed CPAN module installation guide.