1RR::KEY(3) User Contributed Perl Documentation RR::KEY(3)
2
3
4
6 Net::DNS::RR::KEY - DNS KEY resource record
7
9 "use Net::DNS::RR;"
10
12 Class for DNS Address (KEY) resource records.
13
15 This class inherits most of its methods from DNSKEY. See DNSKEY for a
16 complete list of available methods.
17
18 flags
19 print "flags" = ", $rr->flags, "\n";
20
21 Returns the RR's flags in decimal representation
22
23 protocol
24 print "protocol" = ", $rr->protocol, "\n";
25
26 Returns the RR's protocol field in decimal representation
27
28 algorithm
29 print "algoritm" = ", $rr->algorithm, "\n";
30
31 Returns the RR's algorithm field in decimal representation
32
33 1 = MD5 RSA
34 2 = DH
35 3 = DSA
36 4 = Elliptic curve
37 5 = SHA1 RSA
38
39 Note that only algorithm 1 and 3 are supported by the methods provided
40 through Net::DNS::RR::SIG.pm.
41
42 key
43 print "key" = ", $rr->key, "\n";
44
45 Returns the key in base64 representation
46
47 keybin
48 $keybin = $rr->keybin;
49
50 Returns the key binary material
51
52 keytag
53 print "keytag" = ", $rr->keytag, "\n";
54
55 Returns the key tag of the key. (RFC2535 4.1.6)
56
57 privatekeyname
58 $privatekeyname=$rr->privatekeyname
59
60 Returns the name of the privatekey as it would be generated by the BIND
61 dnssec-keygen program. The format of that name being
62 K\<fqdn\>+\<algorithm\>+\<keyid\>.private
63
65 Copyright (c) 2001-2005 RIPE NCC. Author Olaf M. Kolkman
66 <olaf@net-dns.org>
67
68 All Rights Reserved
69
70 Permission to use, copy, modify, and distribute this software and its
71 documentation for any purpose and without fee is hereby granted,
72 provided that the above copyright notice appear in all copies and that
73 both that copyright notice and this permission notice appear in
74 supporting documentation, and that the name of the author not be used
75 in advertising or publicity pertaining to distribution of the software
76 without specific, written prior permission.
77
78 THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
79 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS; IN NO
80 EVENT SHALL AUTHOR BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
81 DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
82 PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
83 ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
84 THIS SOFTWARE.
85
86 Based on, and contains, code by Copyright (c) 1997 Michael Fuhr.
87
89 http://www.net-dns.org/ <http://www.net-dns.org/>
90
91 perl(1), Net::DNS, Net::DNS::Resolver, Net::DNS::Packet,
92 Net::DNS::Header, Net::DNS::Question, Net::DNS::RR, RFC 2931.
93
94
95
96perl v5.12.3 2010-03-12 RR::KEY(3)