Section: User Contributed Perl Documentation (3)
Net::DNS::RR::KEY - DNS KEY resource record
Class for DNS
) resource records.
This class inherits most of its methods from DNSKEY
. See DNSKEY
for acomplete list of available methods.
print "flags" = ", $rr->flags, "\n";
Returns the RR's flags in decimal representation
print "protocol" = ", $rr->protocol, "\n";
Returns the RR's protocol field in decimal representation
print "algoritm" = ", $rr->algorithm, "\n";
Returns the RR's algorithm field in decimal representation
1 = MD5 RSA 2 = DH 3 = DSA 4 = Elliptic curve 5 = SHA1 RSA
Note that only algorithm 1 and 3 are supported by the methods providedthrough Net::DNS::RR::SIG.pm.
print "key" = ", $rr->key, "\n";
Returns the key in base64 representation
$keybin = $rr->keybin;
Returns the key binary material
print "keytag" = ", $rr->keytag, "\n";
Returns the key tag of the key. (RFC2535 4.1.6)
Returns the name of the privatekey as it would be generated bythe BIND dnssec-keygen program. The format of that name beingK\<fqdn\>+\<algorithm\>+\<keyid\>.private
Copyright (c) 2001-2005 RIPE NCC
. Author Olaf M. Kolkman <olafAATTnet-dns.org>
All Rights Reserved
Permission to use, copy, modify, and distribute this software and itsdocumentation for any purpose and without fee is hereby granted,provided that the above copyright notice appear in all copies and thatboth that copyright notice and this permission notice appear insupporting documentation, and that the name of the author not beused in advertising or publicity pertaining to distribution of thesoftware without specific, written prior permission.
THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDINGALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS; IN NO EVENT SHALLAUTHOR BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANYDAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER INAN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OFOR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Based on, and contains, code by Copyright (c) 1997 Michael Fuhr.
perl(1), Net::DNS, Net::DNS::Resolver, Net::DNS::Packet,Net::DNS::Header, Net::DNS::Question, Net::DNS::RR,RFC 2931.
- SEE ALSO
This document was created byman2html,using the manual pages.