-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathbind-install
More file actions
79 lines (62 loc) · 1.87 KB
/
bind-install
File metadata and controls
79 lines (62 loc) · 1.87 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
yum -y install bind bind-utils
vi /etc/named.conf
zone "ministry.local" IN {
type master;
file "forward.ministry";
allow-update { none; };
};
zone "10.10.10.in-addr.arpa" IN {
type master;
file "reverse.ministry";
allow-update { none; };
};
include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";
vi /var/named/forward.ministry
$TTL 86400
@ IN SOA masterdns.ministry.local. root.ministry.local. (
2011071001 ;Serial
3600 ;Refresh
1800 ;Retry
604800 ;Expire
86400 ;Minimum TTL
)
@ IN NS masterdns.ministry.local.
@ IN NS slavedns.ministry.local.
@ IN A 10.10.10.72
@ IN A 10.10.10.73
@ IN A 10.10.10.20
masterdns IN A 10.10.10.72
slavedns IN A 10.10.10.73
client IN A 10.10.10.20
vi /var/named/reverse.ministry
$TTL 86400
@ IN SOA masterdns.ministry.local. root.ministry.local. (
2011071001 ;Serial
3600 ;Refresh
1800 ;Retry
604800 ;Expire
86400 ;Minimum TTL
)
@ IN NS masterdns.ministry.local.
@ IN NS slavedns.ministry.local.
@ IN PTR ministry.local.
masterdns IN A 10.10.10.72
slavedns IN A 10.10.10.73
client IN A 10.10.10.20
72 IN PTR masterdns.ministry.local.
73 IN PTR slavedns.ministry.local.
20 IN PTR client.ministry.local.
systemctl start named
systemctl enable named
# slave
zone "ministry.local" IN {
type slave;
file "slaves/ministry.fwd";
masters { 10.10.10.72; };
};
zone "1.168.192.in-addr.arpa" IN {
type slave;
file "slaves/ministry.rev";
masters { 10.10.10.72; };
};