Net::DNS::SEC::Tools::dnssectools.3pm

Langue: en

Version: 2007-03-24 (mandriva - 01/05/08)

Section: 3 (Bibliothèques de fonctions)

NAME

Net::DNS::SEC::Tools::dnssectools - General routines for the DNSSEC-Tools package.

SYNOPSIS

   use Net::DNS::SEC::Tools::dnssectools;
 
   dt_adminmail($subject,$msgbody,$recipient);
 
   $ftype = dt_findtype($path);
 
 

DESCRIPTION

The Net::DNS::SEC::Tools::dnssectools module provides a general set of methods for use with DNSSEC-Tools utilities.

INTERFACES

The interfaces to the Net::DNS::SEC::Tools::dnssectools module are given below.
dt_adminmail(subject,msgbody,recipient)
This routine emails a message to the administrative user listed in the DNSSEC-Tools configuration file.

dt_adminmail() requires two parameters, both scalars. The subject parameter is the subject for the mail message. The msgbody parameter is the body of the mail message.

A third parameter, recipient, may be given to specify the message's recipient. If this is not given, then the recipient will be taken from the admin-email record of the DNSSEC-Tools configuration file.

Return values:

         1 - the message was created and sent.
         0 - an invalid recipient was specified.
 
 
dt_filetype(path)
This routine returns the type of the file named in path. The rollrec and keyrec records contained therein are counted and a type determination is made.

Return values:

         "keyrec" -  At least one keyrec record was found and no
                     rollrec records were found.
 
         "rollrec" - At least one rollrec record was found and
                     no keyrec records were found.
 
         "mixed" -   At least one rollrec record and at least one
                     keyrec record were found.
                     This is most likely an erroneous file.
 
         "unknown" - No rollrec records nor keyrec records
                     were found.
 
         "nofile"  - The specified file does not exist.
 
 
Copyright 2006-2007 SPARTA, Inc. All rights reserved. See the COPYING file included with the DNSSEC-Tools package for details.

AUTHOR

Wayne Morrison, tewok@users.sourceforge.net

SEE ALSO

Mail::Send.pm(3), Net::DNS::SEC::Tools::conf.pm(3)