OLAF > Net-DNS > Net::DNS::RR::HIP

Download:
Net-DNS-0.68.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  1
Stalled  2
View/Report Bugs
Module Version: 718   Source   Latest Release: Net-DNS-0.79_2

NAME ^

Net::DNS::RR::HIP - DNS HIP resource record

SYNOPSIS ^

use Net::DNS::RR;

DESCRIPTION ^

This class implements the HIP RR (RFC5205)

METHODS ^

pkalgorithm

Returns or sets the public key algorithm field

hit

Returns or sets the hit in base16 representation.

hitbin

Returns or sets the binary representation of the the hit.

Using hit or hitbin to set the one of these attributes will update both attributes.

pubkey

Returns or sets the publick key in base64 representation.

pubkey

Returns or sets the binary representation of the the public key.

Using pubkey or pubkeybin to set the one of these attributes will update both attributes.

rendezvousservers

      my $rendezvousservers=$hip->rendezvousservers();

Returns a reference to an array of rendezvous servers. The representation is in Perl's internal storage format i.e. without trailing dot.

     $hip->rendezvousservers( [ qw|example.com  example.net| ] )

With a reference to an array as the argument this method will set the rendezvousservers.

NOTES ^

Since (multiline) base64 encoded publik keys may contain spaces string parsing of the HIP RR depends on rendevous server names containing at least one . (dot) in their domain name. Failure of string parsing will return an 'undef'.

The rdatastr method (and hence the string and print methods) return the rendezvousservers as fully qualified domain names.

COPYRIGHT ^

Copyright (c) 2009 Olaf Kolkman (NLnet Labs)

All rights reserved. This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO ^

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

syntax highlighting: