1RR::DS(3) User Contributed Perl Documentation RR::DS(3)
2
3
4
6 Net::DNS::RR::DS - DNS DS resource record
7
9 "use Net::DNS::RR;"
10
12 Class for Delegation signer (DS) resource records.
13
15 In addition to the regular methods
16
17 create
18
19 This constructor takes a key object as argument and will return a DS RR
20 object.
21
22 $dsrr=create Net::DNS::RR::DS($keyrr, (
23 digtype => "SHA256" ); $keyrr->print; $dsrr->print;
24
25 The digest type defaults to SHA1.
26
27 verify
28
29 The verify method will return 1 if the hash over the key provided in
30 the argument matches the data in the $dsrr itself i.e. if the DS point‐
31 ing to the DNSKEY from the argument. It will return 0 otherwise.
32
33 $dsrr->($keyrr);
34
35 algorithm
36
37 print "algoritm" = ", $rr->algorithm, "\n";
38
39 Returns the RR's algorithm field in decimal representation
40
41 1 = MD5 RSA
42 2 = DH
43 3 = DSA
44 4 = Elliptic curve
45
46 digest
47
48 print "digest" = ", $dsrr->digest, "\n";
49
50 Returns the SHA1 digest over the label and key in hexadecimal represen‐
51 tation
52
53 digestbin
54
55 $digestbin = $dsrr->digestbin;
56
57 Returns the digest as binary material
58
59 keytag
60
61 print "keytag" ." = ". $dsrr->keytag . "\n";
62
63 Returns the key tag of the key. (RFC2535 4.1.6)
64
65 digtype
66
67 print "digest type" . " = " . $dsrr->digtype ."\n";
68
69 Returns the digest type of the DS RR.
70
71 babble
72
73 print $dsrr->babble;
74
75 Returns the 'BabbleBubble' representation of the digest. The 'Babble‐
76 Bubble' string may be handy for telephone confirmation.
77
78 The 'BabbleBubble' string returned as a comment behind the RDATA when
79 the string method is called.
80
82 Copyright (c) 2001-2005 RIPE NCC. Author Olaf M. Kolkman
83 <olaf@net-dns.org>
84
85 All Rights Reserved
86
87 Permission to use, copy, modify, and distribute this software and its
88 documentation for any purpose and without fee is hereby granted, pro‐
89 vided that the above copyright notice appear in all copies and that
90 both that copyright notice and this permission notice appear in sup‐
91 porting documentation, and that the name of the author not be used in
92 advertising or publicity pertaining to distribution of the software
93 without specific, written prior permission.
94
95 THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
96 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS; IN NO
97 EVENT SHALL AUTHOR BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
98 DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
99 PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
100 ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
101 THIS SOFTWARE.
102
103 Based on, and contains, code by Copyright (c) 1997 Michael Fuhr.
104
106 <http://www.net-dns.org/>
107
108 perl(1), Net::DNS, Net::DNS::Resolver, Net::DNS::Packet,
109 Net::DNS::Header, Net::DNS::Question, Net::DNS::RR, RFC 4033, RFC4034,
110 RFC4035
111
112
113
114perl v5.8.8 2006-02-14 RR::DS(3)