-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnamed.conf.test2
52 lines (45 loc) · 931 Bytes
/
named.conf.test2
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
// BIND configuration file for generic hosts
logging {
category lame-servers { null; };
category edns-disabled { null; };
};
options {
directory "/tmp/";
datasize 64M;
notify yes;
// Use the local services first!
forward first;
forwarders { 198.182.196.1; };
sortlist {
{ localhost; localnets; };
{ localnets; };
};
// 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;
};
};
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
// Each host has it's own key file
include "/etc/rndc.key";