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
14// NS2
15
16options {
17	query-source address 10.53.0.2;
18	notify-source 10.53.0.2;
19	transfer-source 10.53.0.2;
20	port @PORT@;
21	pid-file "named.pid";
22	listen-on { 127.0.0.1; 10.53.0.2; };
23	listen-on-v6 { ::1; fd92:7065:b8e:ffff::2; };
24	recursion no;
25	dnssec-validation no;
26	geoip-directory "../data";
27};
28
29key rndc_key {
30	secret "1234abcd8765";
31	algorithm @DEFAULT_HMAC@;
32};
33
34controls {
35	inet 10.53.0.2 port @CONTROLPORT@ allow { any; } keys { rndc_key; };
36};
37
38acl gAU { geoip db country country AU; };
39acl gUS { geoip db country country US; };
40acl gGB { geoip db country country GB; };
41acl gCA { geoip db country country CA; };
42acl gCL { geoip db country country CL; };
43acl gDE { geoip db country country DE; };
44acl gEH { geoip db country country EH; };
45
46view one {
47	match-clients { gAU; };
48	zone "example" {
49		type primary;
50		file "example1.db";
51	};
52};
53
54view two {
55	match-clients { gUS; };
56	zone "example" {
57		type primary;
58		file "example2.db";
59	};
60};
61
62view three {
63	match-clients { gGB; };
64	zone "example" {
65		type primary;
66		file "example3.db";
67	};
68};
69
70view four {
71	match-clients { gCA; };
72	zone "example" {
73		type primary;
74		file "example4.db";
75	};
76};
77
78view five {
79	match-clients { gCL; };
80	zone "example" {
81		type primary;
82		file "example5.db";
83	};
84};
85
86view six {
87	match-clients { gDE; };
88	zone "example" {
89		type primary;
90		file "example6.db";
91	};
92};
93
94view seven {
95	match-clients { gEH; };
96	zone "example" {
97		type primary;
98		file "example7.db";
99	};
100};
101
102view none {
103	match-clients { any; };
104	zone "example" {
105		type primary;
106		file "examplebogus.db";
107	};
108};
109