1Net::DNS::RR::NSEC3(3)User Contributed Perl DocumentationNet::DNS::RR::NSEC3(3)
2
3
4
6 Net::DNS::RR::NSEC3 - DNS NSEC3 resource record
7
9 use Net::DNS;
10 $rr = new Net::DNS::RR('name NSEC3 algorithm flags iterations salt hnxtname');
11
13 Class for DNSSEC NSEC3 resource records.
14
15 The NSEC3 Resource Record (RR) provides authenticated denial of
16 existence for DNS Resource Record Sets.
17
18 The NSEC3 RR lists RR types present at the original owner name of the
19 NSEC3 RR. It includes the next hashed owner name in the hash order of
20 the zone. The complete set of NSEC3 RRs in a zone indicates which
21 RRSets exist for the original owner name of the RR and form a chain of
22 hashed owner names in the zone.
23
25 The available methods are those inherited from the base class augmented
26 by the type-specific methods defined in this package.
27
28 Use of undocumented package features or direct access to internal data
29 structures is discouraged and could result in program termination or
30 other unpredictable behaviour.
31
32 algorithm
33 $algorithm = $rr->algorithm;
34 $rr->algorithm( $algorithm );
35
36 The Hash Algorithm field is represented as an unsigned decimal integer.
37 The value has a maximum of 255.
38
39 algorithm() may also be invoked as a class method or simple function to
40 perform mnemonic and numeric code translation.
41
42 flags
43 $flags = $rr->flags;
44 $rr->flags( $flags );
45
46 The Flags field is represented as an unsigned decimal integer. The
47 value has a maximum value of 255.
48
49 optout
50 $rr->optout(1);
51
52 if ( $rr->optout ) {
53 ...
54 }
55
56 Boolean Opt Out flag.
57
58 iterations
59 $iterations = $rr->iterations;
60 $rr->iterations( $iterations );
61
62 The Iterations field is represented as an unsigned decimal integer.
63 The value is between 0 and 65535, inclusive.
64
65 salt
66 $salt = $rr->salt;
67 $rr->salt( $salt );
68
69 The Salt field is represented as a contiguous sequence of hexadecimal
70 digits. A "-" (unquoted) is used in string format to indicate that the
71 salt field is absent.
72
73 saltbin
74 $saltbin = $rr->saltbin;
75 $rr->saltbin( $saltbin );
76
77 The Salt field as a sequence of octets.
78
79 hnxtname
80 $hnxtname = $rr->hnxtname;
81 $rr->hnxtname( $hnxtname );
82
83 The Next Hashed Owner Name field points to the next node that has
84 authoritative data or contains a delegation point NS RRset.
85
86 typelist
87 @typelist = $rr->typelist;
88 $typelist = $rr->typelist;
89 $rr->typelist( @typelist );
90
91 The Type List identifies the RRset types that exist at the domain name
92 matched by the NSEC3 RR. When called in scalar context, the list is
93 interpolated into a string.
94
95 covered, match
96 print "covered" if $rr->covered{'example.foo'}
97
98 covered() returns a nonzero value when the the domain name provided as
99 argument is covered as defined in the NSEC3 specification:
100
101 To cover: An NSEC3 RR is said to "cover" a name if the hash of the
102 name or "next closer" name falls between the owner name and the
103 next hashed owner name of the NSEC3. In other words, if it proves
104 the nonexistence of the name, either directly or by proving the
105 nonexistence of an ancestor of the name.
106
107 Similarly matched() returns a nonzero value when the domainname in the
108 argument matches as defined in the NSEC3 specification:
109
110 To match: An NSEC3 RR is said to "match" a name if the owner name
111 of the NSEC3 RR is the same as the hashed owner name of that
112 name.
113
115 Copyright (c)2017 Dick Franks
116
117 Portions Copyright (c)2007,2008 NLnet Labs. Author Olaf M. Kolkman
118
119 All rights reserved.
120
121 Package template (c)2009,2012 O.M.Kolkman and R.W.Franks.
122
124 Permission to use, copy, modify, and distribute this software and its
125 documentation for any purpose and without fee is hereby granted,
126 provided that the above copyright notice appear in all copies and that
127 both that copyright notice and this permission notice appear in
128 supporting documentation, and that the name of the author not be used
129 in advertising or publicity pertaining to distribution of the software
130 without specific prior written permission.
131
132 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
133 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
134 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
135 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
136 CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
137 TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
138 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
139
141 perl, Net::DNS, Net::DNS::RR, RFC5155, RFC4648
142
143 Hash Algorithms <http://www.iana.org/assignments/dnssec-
144 nsec3-parameters>
145
146
147
148perl v5.26.3 2018-02-09 Net::DNS::RR::NSEC3(3)