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.1;
16	notify-source 10.53.0.1;
17	transfer-source 10.53.0.1;
18	port @PORT@;
19	pid-file "named.pid";
20	listen-on { 10.53.0.1; };
21	listen-on-v6 { none; };
22	recursion yes;
23	notify no;
24};
25
26# md5 key appended by setup.sh at the end
27
28key "sha1" {
29	secret "FrSt77yPTFx6hTs4i2tKLB9LmE0=";
30	algorithm hmac-sha1;
31};
32
33key "sha224" {
34	secret "hXfwwwiag2QGqblopofai9NuW28q/1rH4CaTnA==";
35	algorithm hmac-sha224;
36};
37
38key "sha256" {
39	secret "R16NojROxtxH/xbDl//ehDsHm5DjWTQ2YXV+hGC2iBY=";
40	algorithm hmac-sha256;
41};
42
43key "sha384" {
44	secret "OaDdoAk2LAcLtYeUnsT7A9XHjsb6ZEma7OCvUpMraQIJX6HetGrlKmF7yglO1G2h";
45	algorithm hmac-sha384;
46};
47
48key "sha512" {
49	secret "jI/Pa4qRu96t76Pns5Z/Ndxbn3QCkwcxLOgt9vgvnJw5wqTRvNyk3FtD6yIMd1dWVlqZ+Y4fe6Uasc0ckctEmg==";
50	algorithm hmac-sha512;
51};
52
53# hmac-md5-legacy key appended by setup.sh at the end
54
55key "hmac-sha1-legacy" {
56       algorithm "hmac-sha1";
57       secret "TxGx9XBp6Pp5yYAOKXdERA==";
58};
59
60key "hmac-sha224-legacy" {
61       algorithm "hmac-sha224";
62       secret "H8Hyw718rLqToQFRLAeFWQ==";
63};
64
65key "hmac-sha256-legacy" {
66       algorithm "hmac-sha256";
67       secret "fdT9hiPov4ThMEfRv1FNmA==";
68};
69
70key "hmac-sha384-legacy" {
71       algorithm "hmac-sha384";
72       secret "fnshFIjQTLFap6+j2JGBkA==";
73};
74
75key "hmac-sha512-legacy" {
76       algorithm "hmac-sha512";
77       secret "BZwNLICp2tj4hi6gil41eg==";
78};
79
80# md5-trunc key appended by setup.sh at the end
81
82key "sha1-trunc" {
83	secret "FrSt77yPTFx6hTs4i2tKLB9LmE0=";
84	algorithm hmac-sha1-80;
85};
86
87key "sha224-trunc" {
88	secret "hXfwwwiag2QGqblopofai9NuW28q/1rH4CaTnA==";
89	algorithm hmac-sha224-112;
90};
91
92key "sha256-trunc" {
93	secret "R16NojROxtxH/xbDl//ehDsHm5DjWTQ2YXV+hGC2iBY=";
94	algorithm hmac-sha256-128;
95};
96
97key "sha384-trunc" {
98	secret "OaDdoAk2LAcLtYeUnsT7A9XHjsb6ZEma7OCvUpMraQIJX6HetGrlKmF7yglO1G2h";
99	algorithm hmac-sha384-192;
100};
101
102key "sha512-trunc" {
103	secret "jI/Pa4qRu96t76Pns5Z/Ndxbn3QCkwcxLOgt9vgvnJw5wqTRvNyk3FtD6yIMd1dWVlqZ+Y4fe6Uasc0ckctEmg==";
104	algorithm hmac-sha512-256;
105};
106
107zone "example.nil" {
108	type primary;
109	file "example.db";
110};
111
112server 10.53.0.2 {
113	keys sha256;
114};
115
116zone "bad-tsig" {
117	type forward;
118	forwarders { 10.53.0.2; };
119	forward only;
120};
121