line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#--------------------------------------------------------------------- |
2
|
|
|
|
|
|
|
package WebService::NFSN::DNS; |
3
|
|
|
|
|
|
|
# |
4
|
|
|
|
|
|
|
# Copyright 2010 Christopher J. Madsen |
5
|
|
|
|
|
|
|
# |
6
|
|
|
|
|
|
|
# Author: Christopher J. Madsen |
7
|
|
|
|
|
|
|
# Created: 3 Apr 2007 |
8
|
|
|
|
|
|
|
# |
9
|
|
|
|
|
|
|
# This program is free software; you can redistribute it and/or modify |
10
|
|
|
|
|
|
|
# it under the same terms as Perl itself. |
11
|
|
|
|
|
|
|
# |
12
|
|
|
|
|
|
|
# This program is distributed in the hope that it will be useful, |
13
|
|
|
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
14
|
|
|
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See either the |
15
|
|
|
|
|
|
|
# GNU General Public License or the Artistic License for more details. |
16
|
|
|
|
|
|
|
# |
17
|
|
|
|
|
|
|
# ABSTRACT: Access NFSN DNS information |
18
|
|
|
|
|
|
|
#--------------------------------------------------------------------- |
19
|
|
|
|
|
|
|
|
20
|
1
|
|
|
1
|
|
7542
|
use 5.006; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
49
|
|
21
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
45
|
|
22
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
32
|
|
23
|
|
|
|
|
|
|
|
24
|
1
|
|
|
1
|
|
5
|
use parent 'WebService::NFSN::Object'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
8
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
#===================================================================== |
27
|
|
|
|
|
|
|
# Package Global Variables: |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
our $VERSION = '1.03'; # VERSION |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
#===================================================================== |
32
|
|
|
|
|
|
|
BEGIN { |
33
|
1
|
|
|
1
|
|
137
|
__PACKAGE__->_define( |
34
|
|
|
|
|
|
|
type => 'dns', |
35
|
|
|
|
|
|
|
ro => [qw(serial)], |
36
|
|
|
|
|
|
|
rw => [qw(expire minTTL refresh retry)], |
37
|
|
|
|
|
|
|
methods => { |
38
|
|
|
|
|
|
|
addRR => [qw(name type data ttl?)], |
39
|
|
|
|
|
|
|
'listRRs:JSON' => [qw(name? type? data?)], |
40
|
|
|
|
|
|
|
removeRR => [qw(name type data)], |
41
|
|
|
|
|
|
|
updateSerial => [], |
42
|
|
|
|
|
|
|
} |
43
|
|
|
|
|
|
|
); |
44
|
|
|
|
|
|
|
} # end BEGIN |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
#===================================================================== |
47
|
|
|
|
|
|
|
# Package Return Value: |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
1; |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
__END__ |