xref: /netbsd-src/external/mpl/bind/dist/bin/tests/system/xfer/ns2/named.conf.in (revision ae87de8892f277bece3527c15b186ebcfa188227)
1/*
2 * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
3 *
4 * SPDX-License-Identifier: MPL-2.0
5 *
6 * This Source Code Form is subject to the terms of the Mozilla Public
7 * License, v. 2.0.  If a copy of the MPL was not distributed with this
8 * file, you can obtain one at https://mozilla.org/MPL/2.0/.
9 *
10 * See the COPYRIGHT file distributed with this work for additional
11 * information regarding copyright ownership.
12 */
13
14options {
15	query-source address 10.53.0.2;
16	notify-source 10.53.0.2;
17	transfer-source 10.53.0.2;
18	port @PORT@;
19	pid-file "named.pid";
20	listen-on { 10.53.0.2; };
21	listen-on-v6 { none; };
22	recursion no;
23	notify yes;
24	ixfr-from-differences yes;
25	check-integrity no;
26};
27
28key rndc_key {
29	secret "1234abcd8765";
30	algorithm hmac-sha256;
31};
32
33controls {
34	inet 10.53.0.2 port @CONTROLPORT@ allow { any; } keys { rndc_key; };
35};
36
37key tsigzone. {
38	algorithm hmac-md5;
39	secret "1234abcd8765";
40};
41
42acl tzkey {
43	key tsigzone.;
44};
45
46zone "." {
47	type hint;
48	file "../../common/root.hint";
49};
50
51zone "example" {
52	type primary;
53	file "example.db";
54};
55
56zone "tsigzone" {
57	type primary;
58	file "tsigzone.db";
59	allow-transfer { tzkey; };
60};
61
62zone "secondary" {
63	type secondary;
64	file "sec.db";
65	primaries { 10.53.0.1; };
66	masterfile-format text;
67};
68
69zone "mapped" {
70	type secondary;
71	file "mapped.db";
72	masterfile-format text;
73	primaries { 10.53.0.100; };
74};
75