xref: /netbsd-src/external/mpl/bind/dist/bin/tests/system/dnssec/ns4/named1.conf.in (revision e6c7e151de239c49d2e38720a061ed9d1fa99309)
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
12// NS4
13
14options {
15	query-source address 10.53.0.4 dscp 1;
16	notify-source 10.53.0.4 dscp 2;
17	transfer-source 10.53.0.4 dscp 3;
18	port @PORT@;
19	pid-file "named.pid";
20	listen-on { 10.53.0.4; };
21	listen-on-v6 { none; };
22	recursion yes;
23	dnssec-enable yes;
24	dnssec-validation yes;
25	dnssec-must-be-secure mustbesecure.example yes;
26	minimal-responses no;
27
28	nta-lifetime 12s;
29	nta-recheck 9s;
30
31	validate-except { corp; };
32
33	# Note: We only reference the bind.keys file here to confirm that it
34	# is *not* being used.  It contains the real root key, and we're
35	# using a local toy root zone for the tests, so it wouldn't work.
36	# But since dnssec-validation is set to "yes" not "auto", that
37	# won't matter.
38	bindkeys-file "../../../../../bind.keys";
39};
40
41key rndc_key {
42	secret "1234abcd8765";
43	algorithm hmac-sha256;
44};
45
46controls {
47	inet 10.53.0.4 port @CONTROLPORT@ allow { any; } keys { rndc_key; };
48};
49
50zone "." {
51	type hint;
52	file "../../common/root.hint";
53};
54
55zone "corp" {
56	type static-stub;
57	server-addresses { 10.53.0.2; };
58};
59
60include "trusted.conf";
61