-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdata.pm
More file actions
91 lines (91 loc) · 1.78 KB
/
data.pm
File metadata and controls
91 lines (91 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
package data;
require Exporter;
@ISA = qw(Exporter);
@EXPORT = qw(%records);
# dont mess with those data structures, they are hardcoded in the commander moira backend!!!
our %records=(
"test.example.com" => {
"SOA" => {
"192.168.0.0/24" => {
type => "RR",
ttl => 1234,
content => "localhost hostmaster.does.not.matter 0 10800 3600 604800 3600",
},
"WILDCARD" => {
type => "RR",
ttl => 3600,
content => "localhost hostmaster.maybe.does.matter 0 10800 3600 604800 3600",
},
},
"NS" => {
"WILDCARD" => {
type => "RRSET",
ttl => 300,
content => [
"ns1.example.com",
"ns2.example.com",
],
},
},
"A" => {
"192.168.0.0/24" => {
type => "RR",
ttl => 1234,
content => "127.0.0.16",
},
"WILDCARD" => {
type => "RR",
ttl => 3600,
content => "127.0.0.3",
},
},
"TXT" => {
"192.168.0.0/24" => {
type => "RR",
ttl => 3600,
content => "\"you are coming from some RFC1918 network\"",
},
"WILDCARD" => {
type => "RR",
ttl => 3600,
content => "\"you are coming from someplace that i do not know\"",
},
},
},
"www.example.org" => {
"NS" => {
"WILDCARD" => {
type => "RRSET",
ttl => 300,
content => [
"ns1.example.com",
"ns2.example.com",
],
},
},
"SOA" => {
"10.0.0.0/8" => {
type => "RR",
ttl => 60,
content => "localhost hostmaster.example.com 0 10800 3600 604800 3600",
},
"192.168.0.0/24" => {
type => "RR",
ttl => 60,
content => "localhost hostmaster.example.org 0 10800 3600 604800 3600",
},
},
"A" => {
"10.0.0.0/8" => {
type => "RR",
ttl => 60,
content => "127.0.0.4",
},
"192.168.0.0/24" => {
type => "RR",
ttl => 60,
content => "127.0.0.5",
},
},
},
);