Luis Muñoz > Net-DNS-Method-2.00 > Net::DNS::Method::Pool

Download:
Net-DNS-Method-2.00.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
Stalled  1
View Bugs
Report a bug
Module Version: 2.00   Source  

NAME ^

Net::DNS::Method::Pool - A DNS resolver that handles the names for address pools

SYNOPSIS ^

  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
      };

DESCRIPTION ^

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().

EXPORT

None by default.

HISTORY ^

1.00

Original version; created by h2xs 1.20 with options

  -ACOXfn
        Net::DNS::Method::Pool
        -v
        1.00
1.10

Updated to use NetAddr::IP v3.00.

2.00

Packaged for public release.

AUTHOR ^

Luis E. Munoz <luismunoz@cpan.org>

SEE ALSO ^

perl(1), Net::DNS::Method(3).