Net::DNS::RR::HIP - DNS HIP resource record
use Net::DNS::RR;
use Net::DNS::RR
This class implements the HIP RR (RFC5205)
Returns or sets the public key algorithm field
Returns or sets the hit in base16 representation.
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.
Returns or sets the publick key in base64 representation.
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.
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.
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 (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.
perl(1), Net::DNS, Net::DNS::Resolver, Net::DNS::Packet, Net::DNS::Header, Net::DNS::Question, Net::DNS::RR, RFC 5205
To install Net::DNS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::DNS
CPAN shell
perl -MCPAN -e shell install Net::DNS
For more information on module installation, please visit the detailed CPAN module installation guide.