NAME
Net::DNS::Method::Hash - Perl extension to provide static mapping of RRs to IP addresses
SYNOPSIS
use Net::DNS::Method::Hash;
my $Hash = new Net::DNS::Method::Hash { BaseDomain => 'hashdomain.com',
Hash => $ref_to_hash,
};
DESCRIPTION
This class supports the specification of large amounts of RRs under the zone specified as the BaseDomain
option. The RRs have the generic form
<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.
EXPORT
None by default.
HISTORY
$Id: Hash.pm,v 1.2 2002/10/23 04:43:58 lem Exp $
- 1.00
-
Original version; created by h2xs 1.20 with options
-ACOXfn Net::DNS::Method::Hash -v 1.00
- 1.01
-
Modified the match, to make it lookup the name with or without the domain.
- 2.00
-
Merging for first public distribution.
Used
AUTOLOAD
to automatically support all the RRs that Net::DNS supports.
AUTHOR
Luis E. Munoz <luismunoz@cpan.org>
SEE ALSO
perl(1), Net::DNS::Method(3).