1dnssectools(3)        User Contributed Perl Documentation       dnssectools(3)
2
3
4

NAME

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

SYNOPSIS

10         use Net::DNS::SEC::Tools::dnssectools;
11
12         dt_adminmail($subject,$msgbody,$recipient);
13
14         $zspath = dt_cmdpath('zonesigner');
15
16         $ftype = dt_findtype($path);
17

DESCRIPTION

19       The dnssectools module provides a general set of methods for use with
20       DNSSEC-Tools utilities.
21

INTERFACES

23       The interfaces to the dnssectools module are given below.
24
25       dt_adminmail(subject,msgbody,recipient)
26           This routine emails a message to the administrative user listed in
27           the DNSSEC-Tools configuration file.
28
29           dt_adminmail() requires two parameters, both scalars.  The subject
30           parameter is the subject for the mail message.  The msgbody parame‐
31           ter is the body of the mail message.
32
33           A third parameter, recipient, may be given to specify the message's
34           recipient.  If this is not given, then the recipient will be taken
35           from the admin-email record of the DNSSEC-Tools configuration file.
36
37           Return values:
38
39                   1 - the message was created and sent.
40                   0 - an invalid recipient was specified.
41
42       dt_cmdpath(command)
43           This routine returns the path to a specified DNSSEC-Tools command.
44           command should be the name only, without any leading directories.
45           The command name is checked to ensure that it is a valid DNSEC-
46           Tools command,
47
48           Return values:
49
50                   The absolute path to the command is returned if the command
51                   is valid.
52                   Null is returned if the command is not valid.
53
54       dt_filetype(path)
55           This routine returns the type of the file named in path.  The roll‐
56           rec and keyrec records contained therein are counted and a type
57           determination is made.
58
59           Return values:
60
61                   "keyrec" -  At least one keyrec record was found and no
62                               rollrec records were found.
63
64                   "rollrec" - At least one rollrec record was found and
65                               no keyrec records were found.
66
67                   "mixed" -   At least one rollrec record and at least one
68                               keyrec record were found.
69                               This is most likely an erroneous file.
70
71                   "unknown" - No rollrec records nor keyrec records
72                               were found.
73
74                   "nofile"  - The specified file does not exist.
75
77       Copyright 2006-2007 SPARTA, Inc.  All rights reserved.  See the COPYING
78       file included with the DNSSEC-Tools package for details.
79

AUTHOR

81       Wayne Morrison, tewok@users.sourceforge.net
82

SEE ALSO

84       Mail::Send.pm(3), Net::DNS::SEC::Tools::conf.pm(3)
85
86
87
88perl v5.8.8                       2008-02-15                    dnssectools(3)
Impressum