1Net::DNS::RR::DS(3)   User Contributed Perl Documentation  Net::DNS::RR::DS(3)
2
3
4

NAME

6       Net::DNS::RR::DS - DNS DS resource record
7

SYNOPSIS

9           use Net::DNS;
10           $rr = new Net::DNS::RR('name DS keytag algorithm digtype digest');
11
12           use Net::DNS::SEC;
13           $ds = create Net::DNS::RR::DS(
14               $dnskeyrr,
15               digtype => 'SHA256',
16               ttl     => 3600
17               );
18

DESCRIPTION

20       Class for DNS Delegation Signer (DS) resource record.
21

METHODS

23       The available methods are those inherited from the base class augmented
24       by the type-specific methods defined in this package.
25
26       Use of undocumented package features or direct access to internal data
27       structures is discouraged and could result in program termination or
28       other unpredictable behaviour.
29
30   keytag
31           $keytag = $rr->keytag;
32           $rr->keytag( $keytag );
33
34       The 16-bit numerical key tag of the key. (RFC2535 4.1.6)
35
36   algorithm
37           $algorithm = $rr->algorithm;
38           $rr->algorithm( $algorithm );
39
40       Decimal representation of the 8-bit algorithm field.
41
42       algorithm() may also be invoked as a class method or simple function to
43       perform mnemonic and numeric code translation.
44
45   digtype
46           $digtype = $rr->digtype;
47           $rr->digtype( $digtype );
48
49       Decimal representation of the 8-bit digest type field.
50
51       digtype() may also be invoked as a class method or simple function to
52       perform mnemonic and numeric code translation.
53
54   digest
55           $digest = $rr->digest;
56           $rr->digest( $digest );
57
58       Hexadecimal representation of the digest over the label and key.
59
60   digestbin
61           $digestbin = $rr->digestbin;
62           $rr->digestbin( $digestbin );
63
64       Binary representation of the digest over the label and key.
65
66   babble
67           print $rr->babble;
68
69       The babble() method returns the 'BubbleBabble' representation of the
70       digest if the Digest::BubbleBabble package is available, otherwise an
71       empty string is returned.
72
73       BubbleBabble represents a message digest as a string of plausible
74       words, to make the digest easier to verify.  The "words" are not
75       necessarily real words, but they look more like words than a string of
76       hex characters.
77
78       The 'BubbleBabble' string is appended as a comment when the string
79       method is called.
80
81   create
82           use Net::DNS::SEC;
83
84           $dsrr = create Net::DNS::RR::DS($keyrr, digtype => 'SHA-256' );
85           $keyrr->print;
86           $dsrr->print;
87
88       This constructor takes a key object as argument and will return the
89       corresponding DS RR object.
90
91       The digest type defaults to SHA-1.
92
93   verify
94           $verify = $dsrr->verify($keyrr);
95
96       The boolean verify method will return true if the hash over the key RR
97       provided as the argument conforms to the data in the DS itself i.e. the
98       DS points to the DNSKEY from the argument.
99
101       Copyright (c)2001-2005 RIPE NCC.  Author Olaf M. Kolkman
102
103       Portions Copyright (c)2013 Dick Franks.
104
105       All rights reserved.
106
107       Package template (c)2009,2012 O.M.Kolkman and R.W.Franks.
108

LICENSE

110       Permission to use, copy, modify, and distribute this software and its
111       documentation for any purpose and without fee is hereby granted,
112       provided that the above copyright notice appear in all copies and that
113       both that copyright notice and this permission notice appear in
114       supporting documentation, and that the name of the author not be used
115       in advertising or publicity pertaining to distribution of the software
116       without specific prior written permission.
117
118       THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
119       OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
120       MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
121       IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
122       CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
123       TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
124       SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
125

SEE ALSO

127       perl, Net::DNS, Net::DNS::RR, RFC4034, RFC3658
128
129       Algorithm Numbers <http://www.iana.org/assignments/dns-sec-alg-
130       numbers>, Digest Types <http://www.iana.org/assignments/ds-rr-types>
131
132
133
134perl v5.32.0                      2020-07-28               Net::DNS::RR::DS(3)
Impressum