1/*****************************************************************
2**
3**      #(@)    named.conf	(c) 6. May 2004 (hoz)
4*****************************************************************/
5
6/*****************************************************************
7**      logging options
8*****************************************************************/
9logging {
10        channel "named-log" {
11                file "named.log";
12                print-time yes;
13                print-category yes;
14                print-severity yes;
15                severity info;
16        };
17        category "dnssec" { "named-log"; };
18        category "edns-disabled" { "named-log"; };
19        category "default" { "named-log"; };
20};
21
22/*****************************************************************
23**      name server options
24*****************************************************************/
25options {
26	directory ".";
27
28	pid-file "named.pid";
29	listen-on-v6 port 1053 { any; };
30	listen-on port 1053 { any; };
31
32	empty-zones-enable no;
33
34	port 1053;
35	query-source address * port 1053;
36	query-source-v6 address * port 1053;
37	transfer-source * port 53;
38	transfer-source-v6 * port 53;
39	use-alt-transfer-source no;
40	notify-source * port 53;
41	notify-source-v6 * port 53;
42
43	recursion yes;
44	dnssec-enable yes;
45	dnssec-validation yes;		/* required by BIND 9.4.0 */
46	dnssec-accept-expired false;	/* added since BIND 9.5.0 */
47	edns-udp-size 1460;		/* (M4) */
48	max-udp-size 1460;		/* (M5) */
49
50	# allow-query { localhost; };	/* default in 9.4.0 */
51	# allow-query-cache { localhost; };	/* default in 9.4.0 */
52
53	dnssec-must-be-secure "." no;
54
55	querylog yes;
56
57	stats-server 127.0.0.1 port 8881;	/* added since BIND 9.5.0 */
58};
59
60/*****************************************************************
61**      view intern
62*****************************************************************/
63view "intern" {
64	match-clients { 127.0.0.1; ::1; };
65	recursion yes;
66	zone "." in {
67		type hint;
68		file "root.hint";
69	};
70
71	zone "0.0.127.in-addr.arpa" in {
72		type master;
73		file "127.0.0.zone";
74	};
75
76	zone "example.net" in {
77		type master;
78		file "intern/example.net/zone.db.signed";
79	};
80};
81
82/*****************************************************************
83**      view extern
84*****************************************************************/
85view "extern" {
86	match-clients { any; };
87	recursion no;
88	zone "." in {
89		type hint;
90		file "root.hint";
91	};
92
93	zone "example.net" in {
94		type master;
95		file "extern/example.net/zone.db.signed";
96	};
97};
98