1Net::DNS::RR::APL(3) User Contributed Perl Documentation Net::DNS::RR::APL(3)
2
3
4
6 Net::DNS::RR::APL - DNS APL resource record
7
9 "use Net::DNS::RR";
10
12 This is an RR type for address prefix lists. Please see the RFC3123 for
13 details.
14
16 applist
17 Returns an array of Net::DNS::APL::ApItem objects.
18
19 Each ApItem objecst contains the following attribute that can be
20 accessed and set using methods of the same name: addressfamily, prefix,
21 negation, address
22
23 foreach my $ap ($apl->aplist()){
24 print $ap->negation()?"!":"";
25 print $ap->addressfamily().":";
26 print $ap->address();
27 print $ap->prefix(). " ";
28 }
29
30 In addition the Net::DNS::APL::ApItem objects can be printed using the
31 string method.
32
33 foreach my $ap ($apl->aplist())
34 print $ap->string."\n";
35 }
36
38 Copyright (c) 2008 Olaf Kolkman (NLnet Labs)
39
40 All rights reserved. This program is free software; you may
41 redistribute it and/or modify it under the same terms as Perl itself.
42
44 Net::DNS::RR::APL::ApItem, perl(1), Net::DNS, Net::DNS::Resolver,
45 Net::DNS::Packet, Net::DNS::Header, Net::DNS::Question, Net::DNS::RR,
46 RFC 3123
47
48
49
50perl v5.12.0 2009-01-26 Net::DNS::RR::APL(3)