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


Net-DNS documentation  | view source Contained in the Net-DNS distribution.

Index


NAME

Top

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

SYNOPSIS

Top

use Net::DNS::RR;

DESCRIPTION

Top

This is an RR type for address prefix lists. Please see the RFC3123 for details.

METHODS

Top

applist

Returns an array of Net::DNS::APL::ApItem objects.

Each ApItem objecst contains the following attribute that can be accessed and set using methods of the same name: addressfamily, prefix, negation, address

  foreach my $ap ($apl->aplist()){
     	print $ap->negation()?"!":"";		
    	print $ap->addressfamily().":";		
    	print $ap->address();		
    	print $ap->prefix(). " ";
    }

In addition the Net::DNS::APL::ApItem objects can be printed using the string method.

    foreach my $ap ($apl->aplist())
              print $ap->string."\n";		
    }










COPYRIGHT

Top

SEE ALSO

Top

Net::DNS::RR::APL::ApItem, perl(1), Net::DNS, Net::DNS::Resolver, Net::DNS::Packet, Net::DNS::Header, Net::DNS::Question, Net::DNS::RR, RFC 3123


Net-DNS documentation  | view source Contained in the Net-DNS distribution.