Net::DNS::RR::APL(3) User Contributed Perl Documentation Net::DNS::RR::APL(3)

Net::DNS::RR::APL - DNS APL resource record

    use Net::DNS;
    $rr = new Net::DNS::RR('name IN APL aplist');

DNS Address Prefix List (APL) record

The available methods are those inherited from the base class augmented by the type-specific methods defined in this package.

Use of undocumented package features or direct access to internal data structures is discouraged and could result in program termination or other unpredictable behaviour.

    @aplist = $rr->aplist;
  
    @aplist = $rr->aplist( '1:192.168.32.0/21', '!1:192.168.38.0/28' );
  
    @aplist = $rr->aplist( '1:224.0.0.0/4', '2:FF00:0:0:0:0:0:0:0/8' );
  
    @aplist = $rr->aplist( negate  => 1,
                           family  => 1,
                           address => '192.168.38.0',
                           prefix  => 28,
                           );

Ordered, possibly empty, list of address prefix items. Additional items, if present, are appended to the existing list with neither prefix aggregation nor reordering.

Each element of the prefix list is a Net::DNS::RR::APL::Item object which is inextricably bound to the APL record which created it.

    $rr->negate(0);
    $rr->negate(1);
    if ( $rr->negate ) {
        ...
    }

Boolean attribute indicating the prefix to be an address range exclusion.

    $family = $rr->family;

Address family discriminant.

    $prefix = $rr->prefix;

Number of bits comprising the address prefix.

    $address = $object->address;

Address portion of the prefix list item.

    $string = $object->string;

Returns the prefix list item in the form required in zone files.

Copyright (c)2008 Olaf Kolkman, NLnet Labs.

Portions Copyright (c)2011 Dick Franks.

Package template (c)2009,2012 O.M.Kolkman and R.W.Franks.

All rights reserved.

This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself.

perl, Net::DNS, Net::DNS::RR, RFC3123

2014-01-16 perl v5.34.0