Net::DNS::RR::DS - DNS DS resource record


Net-DNS-SEC documentation  | view source Contained in the Net-DNS-SEC distribution.

Index


NAME

Top

Net::DNS::RR::DS - DNS DS resource record

SYNOPSIS

Top

use Net::DNS::RR;

DESCRIPTION

Top

Class for Delegation signer (DS) resource records.

METHODS

Top

In addition to the regular methods

create

This constructor takes a key object as argument and will return a DS RR object.

$dsrr=create Net::DNS::RR::DS($keyrr, ( digtype => "SHA256" ); $keyrr->print; $dsrr->print;

The digest type defaults to SHA1.

verify

The verify method will return 1 if the hash over the key provided in the argument matches the data in the $dsrr itself i.e. if the DS pointing to the DNSKEY from the argument. It will return 0 otherwise.

$dsrr->($keyrr);

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

digest

    print "digest" = ", $dsrr->digest, "\n";

Returns the SHA1 digest over the label and key in hexadecimal representation

digestbin

    $digestbin =  $dsrr->digestbin;

Returns the digest as binary material

keytag

    print "keytag" ." = ". $dsrr->keytag . "\n";

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

digtype

   print "digest type" . " = " . $dsrr->digtype ."\n";

Returns the digest type of the DS RR.

babble

   print $dsrr->babble;

Returns the 'BabbleBubble' representation of the digest. The 'BabbleBubble' string may be handy for telephone confirmation.

The 'BabbleBubble' string returned as a comment behind the RDATA when the string method is called.

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 4033, RFC4034, RFC4035


Net-DNS-SEC documentation  | view source Contained in the Net-DNS-SEC distribution.