-
Notifications
You must be signed in to change notification settings - Fork 0
/
bivio-named.pl
68 lines (68 loc) · 2.11 KB
/
bivio-named.pl
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
#!/usr/bin/env perl
my($net1) = '111.22.33.24/29';
{
NamedConf => {
expiry => '5M',
hostmaster => 'hostmaster.example.com.',
minimum => '6M',
mx_pref => 10,
servers => [qw(ns1.bivio.biz. ns2.bivio.biz.)],
refresh => '7M',
retry => '8M',
spf1 => 'include:aspmx.googlemail.com',
ttl => '9M',
nets => {
'24-31.33.22.111' => $net1,
},
zones => {
'example.com' => {
ipv4 => {
$net1 => {
24 => [
'@mail',
'ns1',
['example.com.' => {
spf1 => '+ include:mail.yahoo.com',
mx => [
'mail',
[qw(mail.other.com. 20)],
],
dkim1 => {
host => 'mydkimhost._domainkey',
p => 'PXWifNHWcbJ8y/Q1AQAB',
},
}],
],
25 => [
['ns2', {ptr => 1}],
'www',
],
26 => 'two.level',
},
'10.10.1.0/29' => {
1 => 'ski',
},
'192.168.128.0/17' => {
'182.16' => [
'back',
],
},
},
cname => {
ftp => 'www',
alias => 'example.other.com.',
},
txt => {
'key1' => 'value1',
},
},
'example2.com' => {
ipv4 => {},
txt => [
['@' => 'key1=abc'],
['@' => 'key2=123'],
],
},
},
},
}