summaryrefslogtreecommitdiff
path: root/etc/bind/named-dual.conf
blob: 6b828e95e3d2bea15c171d05c656b3e151cb317e (plain)
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
92
// $OpenBSD: named-dual.conf,v 1.5 2003/09/22 20:44:32 jakob Exp $
//
// Example file for a named configuration with dual views,
// one processing recursive queries only and one processing
// authoritative-only queries.


// Update this list to include only the networks for which you want
// to execute recursive queries. The default setting allows all hosts
// on any IPv4 networks for which the system has an interface, and
// the IPv6 localhost address.
//
acl clients {
	localnets;
	::1;
};

options {
	version "";	// remove this to allow version queries

	listen-on    { any; };
	listen-on-v6 { any; };
};

logging {
	category lame-servers { null; };
};

view "recursive" {
	match-clients { clients; };
	match-recursive-only yes;

	// Standard zones
	//
	zone "." {
		type hint;
		file "standard/root.hint";
	};

	zone "localhost" {
		type master;
		file "standard/localhost";
		allow-transfer { localhost; };
	};

	zone "127.in-addr.arpa" {
		type master;
		file "standard/loopback";
		allow-transfer { localhost; };
	};

	zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" {
		type master;
		file "standard/loopback6.arpa";
		allow-transfer { localhost; };
	};

	zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.int" {
		type master;
		file "standard/loopback6.int";
		allow-transfer { localhost; };
	};

	zone "com" {
		type delegation-only;
	};

	zone "net" {
		type delegation-only;
	};
};

view "authoritative" {
	recursion no;
	additional-from-auth no;
	additional-from-cache no;

	// Master zones
	//
	//zone "myzone.net" {
	//	type master;
	//	file "master/myzone.net";
	//};

	// Slave zones
	//
	//zone "otherzone.net" {
	//	type slave;
	//	file "slave/otherzone.net";
	//	masters { 192.168.1.10; [...;] };
	//};
};