Net::DNS::RR::KEY - DNS KEY resource record


Net-DNS-SEC documentation Contained in the Net-DNS-SEC distribution.

Index


Code Index:

NAME

Top

Net::DNS::RR::KEY - DNS KEY resource record

SYNOPSIS

Top

use Net::DNS::RR;

DESCRIPTION

Top

Class for DNS Address (KEY) resource records.

METHODS

Top

This class inherits most of its methods from DNSKEY. See DNSKEY for a complete list of available methods.

flags

    print "flags" = ", $rr->flags, "\n";

Returns the RR's flags in decimal representation

protocol

    print "protocol" = ", $rr->protocol, "\n";

Returns the RR's protocol field in decimal representation

algorithm

    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 provided through Net::DNS::RR::SIG.pm.

key

    print "key" = ", $rr->key, "\n";

Returns the key in base64 representation

keybin

    $keybin =  $rr->keybin;

Returns the key binary material

keytag

    print "keytag" = ", $rr->keytag, "\n";

Returns the key tag of the key. (RFC2535 4.1.6)

privatekeyname

    $privatekeyname=$rr->privatekeyname

Returns the name of the privatekey as it would be generated by the BIND dnssec-keygen program. The format of that name being K\<fqdn\>+\<algorithm\>+\<keyid\>.private

COPYRIGHT

Top

SEE ALSO

Top

http://www.net-dns.org/

perl(1), Net::DNS, Net::DNS::Resolver, Net::DNS::Packet, Net::DNS::Header, Net::DNS::Question, Net::DNS::RR, RFC 2931.


Net-DNS-SEC documentation Contained in the Net-DNS-SEC distribution.

package Net::DNS::RR::KEY;

# $Id: KEY.pm 847 2010-03-12 13:04:13Z olaf $

use strict;
use vars qw(@ISA $VERSION);
use bytes;
use Net::DNS;
use MIME::Base64;
use Carp;

@ISA = qw(Net::DNS::RR Net::DNS::RR::DNSKEY);
$VERSION = do { my @r=(q$Revision: 847 $=~/\d+/g); sprintf "%d."."%03d"x$#r,@r };

sub new {
	return Net::DNS::RR::DNSKEY::new(@_);
}

sub new_from_string {
	return Net::DNS::RR::DNSKEY::new_from_string(@_);
}




1;