| Net-DNS-Method documentation | view source | Contained in the Net-DNS-Method distribution. |
Net::DNS::Method::Pool - A DNS resolver that handles the names for address pools
use Net::DNS::Method::Pool;
my $Pool = new Net::DNS::Method::Pool {
Prefix => 'dhcp-',
BaseDomain => 'pool.x.com',
Pool => [ "10.0.0.0/16", "10.1.0.0/16" ],
ttl => 3600
};
This class adds support for naming ranges of IP addresses using rules. It supports answers to A and PTR queries, so that proper forward and reverse references can be implemented.
The example above, will answer a PTR query for any address in the 10.0.0.0/15 range. A query for the PTR of 10.0.0.1 will return
1.0.0.10.in-addr.arpa. IN PTR dhcp-10-0-0-1.pool.x.com
While a query for dhcp-10-1-1-1.pool.x.com will return
dhcp-10-1-1-1.pool.x.com. IN A 10.1.1.1
The TTL for the answer is controlled by the value of ttl in
the hash reference passed to ->new().
None by default.
Original version; created by h2xs 1.20 with options
-ACOXfn Net::DNS::Method::Pool -v 1.00
Updated to use NetAddr::IP v3.00.
Packaged for public release.
Luis E. Munoz <luismunoz@cpan.org>
perl(1), Net::DNS::Method(3).
| Net-DNS-Method documentation | view source | Contained in the Net-DNS-Method distribution. |