1Net::DNS::RR::DNSKEY(3)User Contributed Perl DocumentatioNnet::DNS::RR::DNSKEY(3)
2
3
4

NAME

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

SYNOPSIS

9           use Net::DNS;
10           $rr = new Net::DNS::RR('name DNSKEY flags protocol algorithm publickey');
11

DESCRIPTION

13       Class for DNSSEC Key (DNSKEY) resource records.
14

METHODS

16       The available methods are those inherited from the base class augmented
17       by the type-specific methods defined in this package.
18
19       Use of undocumented package features or direct access to internal data
20       structures is discouraged and could result in program termination or
21       other unpredictable behaviour.
22
23   flags
24           $flags = $rr->flags;
25           $rr->flags( $flags );
26
27       Unsigned 16-bit number representing Boolean flags.
28
29       zone
30            $rr->zone(1);
31
32            if ( $rr->zone ) {
33                   ...
34            }
35
36           Boolean Zone flag.
37
38       revoke
39            $rr->revoke(1);
40
41            if ( $rr->revoke ) {
42                   ...
43            }
44
45           Boolean Revoke flag.
46
47       sep
48            $rr->sep(1);
49
50            if ( $rr->sep ) {
51                   ...
52            }
53
54           Boolean Secure Entry Point flag.
55
56   protocol
57           $protocol = $rr->protocol;
58           $rr->protocol( $protocol );
59
60       The 8-bit protocol number.  This field MUST have value 3.
61
62   algorithm
63           $algorithm = $rr->algorithm;
64           $rr->algorithm( $algorithm );
65
66       The 8-bit algorithm number describes the public key algorithm.
67
68       algorithm() may also be invoked as a class method or simple function to
69       perform mnemonic and numeric code translation.
70
71   publickey
72   key
73           $key = $rr->key;
74           $rr->key( $key );
75
76       Base64 representation of the public key material.
77
78   keybin
79           $keybin = $rr->keybin;
80           $rr->keybin( $keybin );
81
82       Opaque octet string representing the public key material.
83
84   privatekeyname
85           $privatekeyname = $rr->privatekeyname;
86
87       Returns the name of the privatekey as it would be generated by the BIND
88       dnssec-keygen program. The format of that name being:
89
90               K<fqdn>+<algorithm>+<keyid>.private
91
92   signame
93       Returns the canonical signer name of the privatekey.
94
95   keylength
96       Returns the length (in bits) of the modulus calculated from the key
97       text.
98
99   keytag
100           print "keytag = ", $rr->keytag, "\n";
101
102       Returns the 16-bit numerical key tag of the key. (RFC2535 4.1.6)
103
105       Copyright (c)2003-2005 RIPE NCC.  Author Olaf M. Kolkman
106
107       All rights reserved.
108
109       Package template (c)2009,2012 O.M.Kolkman and R.W.Franks.
110

LICENSE

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

SEE ALSO

129       perl, Net::DNS, Net::DNS::RR, RFC4034, RFC3755
130
131       Algorithm Numbers <http://www.iana.org/assignments/dns-sec-alg-numbers>
132
133
134
135perl v5.26.3                      2018-02-09           Net::DNS::RR::DNSKEY(3)
Impressum