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