The Perl Net::DNS::SEC::Validator Extension Module Contents: Introduction: Availability: Contact: Release Notes: Installation: Operational Description: Copyright: Introduction: This Perl module is designed to implement and export functionality provided by the validating DNS resolver library, libval(3). The functions are provided through an easy-to-use object oriented interface. The interface is designed for the higher level user, hiding some of the complexity of validating resolvers. Nevertheless, application interface behavior can be customized through configuration files provided by libval(3) and extensive error codes returned. Details of DNSSEC and associated resolver behavior may be found in the core DNSSEC RFCs (4033-4035). Availability: The most recent release of this module can be found bundled with the latest DNSSEC-Tools distribution available from: http://www.dnssec-tools.org/resources/download.html This module should also be available through CPAN http://www.cpan.org Contact: The following mailing list should be consider the primary support mechanism for this module: dnssec-tools-users@lists.sourceforge.net mail list For bugs use: dnssec-tools-bugs@lists.sourceforge.net mail list Release Notes: The initial beta release of this extension module has been developed against perl-5.8.8. Only high level API functions are provided. Lower level API functions will be provided in a future release. KNOWN BUGS: No *known* bugs. Installation: Libval(3) and related dnssec-tools headers and configuration files should first be installed. Also Net::addrinfo and Net::DNS modules should be installed. perl Makefile.PL make make test (must have access to DNS) make install (requires root privilege) Operational Description: Contructor: To create a validator object use the Net::DNS::SEC::Validator->new() method. This method optionally takes a policy label (policy => 'label'), or default to using the default label in the libval(3) dnsval.conf file. Data Fields: $validator->{error} => the latest method error code $validator->{errorStr} => the latest method error string $validator->{valStatus} => the val_status of last call (if single) $validator->{valStatusStr} => the val_status string of last call Methods: $validator->getaddrinfo([,[,]]) where => is the node name or numeric address being queried => is the name or number represting the service (note: or may be undef, but not both) => a Net::addrinfo object specying flags, family, etc. returns: an array of Net::addrinfo objects (augmented with a 'val_status' field). On error, returns an empty array. in scalar context returns first Net::addrinfo object, or undef on error. $validator->gethostbyname([,]) where => is the node name or numeric address being queried => the address family of returned entry (default: AF_INET) returns: A Net::hostent object. Validator valStatus/valStatusStr fields will be updated. On error, undef is returned and validator object error/errorStr fields are updated. $validator->res_query([,[,]]) where => is the node name or numeric address being queried => is the DNS class of the record being queried (default: IN) => is the DNS record type being queried (defailt A) returns: A packed DNS query result is returned on success. This object is suitable to be passed to the Net::DNS::Packet(\$result) interface for parsing. Validator valStatus/valStatusStr fields will be updated. On error, undef is returned and validator object error/errorStr fields are updated. $validator->policy([