-
Notifications
You must be signed in to change notification settings - Fork 0
/
named.conf.test3
60 lines (51 loc) · 1.01 KB
/
named.conf.test3
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
// BIND configuration file for generic hosts
logging {
category lame-servers { null; };
category edns-disabled { null; };
};
/* comment 1*/
options {
directory "/tmp/";
datasize 64M;
notify yes;
// Use the local services first!
forward first;
forwarders { 198.182.196.1; };
sortlist {
{ localhost; localnets; };
{ localnets; };
/* comment 2 */
};
// Restrict access to permitted hosts
allow-query {
127.0.0.1;
198.182.196/24;
199.184.252/24;
199.249.150/24;
203.226.93/24;
};
allow-recursion {
127.0.0.1;
198.182.196/24;
199.184.252/24;
199.249.150/24;
203.226.93/24;
};
allow-transfer {
127.0.0.1; // localhost
208.234.1.34; // ns0.aitcom.net
198.182.196/24;
199.184.252/24;
199.249.150/24;
203.226.93/24;
};
/* multi line comment
will it work?
or break */
};
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
// Each host has it's own key file
include "/etc/rndc.key";
/* comment 4 */