Zonemaster::LDNS::RR - common baseclass for all classes representing resource records.
my $rr = Zonemaster::LDNS::RR->new('www.iis.se IN A 91.226.36.46');
This class overloads stringify and comparisons ('""', '<=>' and 'cmp').
Creates a new RR object of a suitable subclass, given a string representing an RR in common presentation format.
These two both return the owner name of the RR.
Returns the ttl of the RR.
Return the type of the RR.
Returns the class of the RR.
Returns a string with the RR in presentation format.
Calls the XS compare method with the arguments it needs, rather than the ones overloading gives.
compare
Calls the XS string method with the arguments it needs, rather than the ones overloading gives. Functionally identical to string() from the Perl level, except for being a tiny little bit slower.
string
The number of RDATA objects in this RR.
The raw data of the RDATA object in the given position. The first item is in position 0. If an attempt is made to fetch RDATA from a position that doesn't have any, an exception will be thrown.
To install Zonemaster::LDNS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Zonemaster::LDNS
CPAN shell
perl -MCPAN -e shell install Zonemaster::LDNS
For more information on module installation, please visit the detailed CPAN module installation guide.