named.conf.in revision 1.1.1.4
1/*
2 * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
3 *
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 *
8 * See the COPYRIGHT file distributed with this work for additional
9 * information regarding copyright ownership.
10 */
11
12options {
13	query-source address 10.53.0.1 dscp 1;
14	notify-source 10.53.0.1 dscp 2;
15	transfer-source 10.53.0.1 dscp 3;
16	port @PORT@;
17	pid-file "named.pid";
18	listen-on { 10.53.0.1; };
19	listen-on-v6 { none; };
20	recursion yes;
21	dnssec-validation yes;
22	deny-answer-addresses { 192.0.2.0/24; 2001:db8:beef::/48; }
23		 except-from { "example.org"; };
24	deny-answer-aliases { "example.org"; }
25		except-from { "goodcname.example.net";
26			      "gooddname.example.net"; };
27	allow-query {!10.53.0.8; any; };
28	max-zone-ttl unlimited;
29	attach-cache "globalcache";
30};
31
32server 10.42.23.3/32 {
33     notify-source 10.42.22.1;
34     query-source address 10.42.22.1 port 0;
35     transfer-source 10.42.22.1;
36};
37
38server fd92:7065:b8e:ffff::1000 {
39     notify-source-v6 fd92:7065:b8e:ffff::1001;
40     query-source-v6 address fd92:7065:b8e:ffff::1001 port 0;
41     transfer-source-v6 fd92:7065:b8e:ffff::1001;
42};
43
44/*
45 * Must be first view so that there is a CH cache with name
46 * "globalcache" before the recursive "default"/IN view is configured.
47 */
48view "class" chaos {
49	zone "chaostest" CHAOS {
50                type primary;
51                file "chaostest.db";
52        };
53};
54
55/*
56 * Must be second view so that so that we can check we don't attach to the
57 * "globalcache"/CH cache.
58 */
59view "default" {
60	zone "." {
61		type hint;
62		file "root.hint";
63	};
64};
65