xref: /netbsd-src/external/mpl/bind/dist/bin/tests/system/nsupdate/ns9/named.conf.in (revision 4f645668ed707e1f969c546666f8c8e45e6f8888)
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.9;
16	notify-source 10.53.0.9;
17	transfer-source 10.53.0.9;
18	port @PORT@;
19	pid-file "named.pid";
20	session-keyfile "session.key";
21	listen-on { 10.53.0.9; };
22	recursion no;
23	notify yes;
24	minimal-responses no;
25	@TKEY_CONFIGURATION@
26};
27
28key rndc_key {
29	secret "1234abcd8765";
30	algorithm hmac-sha256;
31};
32
33key subkey {
34	secret "1234abcd8765";
35	algorithm hmac-sha256;
36};
37
38controls {
39	inet 10.53.0.9 port @CONTROLPORT@ allow { any; } keys { rndc_key; };
40};
41
42zone "in-addr.arpa" {
43	type primary;
44	file "in-addr.db";
45	update-policy {	grant EXAMPLE.COM ms-subdomain . PTR; };
46};
47
48zone "example.com" {
49	type primary;
50	file "example.com.db";
51	update-policy {
52		grant EXAMPLE.COM ms-self . ANY;
53		grant EXAMPLE.COM ms-subdomain _tcp.example.com SRV;
54	};
55};
56
57zone "denyname.example" {
58	type master;
59	file "denyname.example.db";
60	update-policy {
61		deny subkey name denyname.example;
62		grant subkey subdomain denyname.example;
63	};
64};
65