xref: /netbsd-src/external/mpl/bind/dist/bin/tests/system/staticstub/ns2/named.conf.in (revision cef8759bd76c1b621f8eab8faa6f208faabc2e15)
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
12key rndc_key {
13	secret "1234abcd8765";
14	algorithm hmac-sha256;
15};
16
17controls {
18	inet 10.53.0.2 port @CONTROLPORT@ allow { any; } keys { rndc_key; };
19};
20
21include "trusted.conf";
22
23options {
24	query-source address 10.53.0.2;
25	notify-source 10.53.0.2;
26	transfer-source 10.53.0.2;
27	port @PORT@;
28	pid-file "named.pid";
29	listen-on { 10.53.0.2; };
30	listen-on-v6 { none; };
31	recursion yes;
32	dnssec-validation yes;
33	notify no;
34};
35
36zone "." {
37	type hint;
38	file "../../common/root.hint";
39};
40
41zone "example" {
42	type static-stub;
43	server-addresses { 10.53.0.3; };
44	allow-query { !10.53.0.7; any; };
45};
46
47zone "example.org" {
48	type static-stub;
49	SERVER_CONFIG_PLACEHOLDER
50};
51
52zone "example.info" {
53	type static-stub;
54	server-addresses { ::1; }; #ns4
55};
56
57zone "undelegated" {
58	type static-stub;
59	server-addresses { 10.53.0.3; };
60};
61