named1.conf.in revision 1.1.1.2
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
12// NS2
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 { fd92:7065:b8e:ffff::2; };
22	recursion no;
23	dnssec-validation no;
24	geoip-directory "../data";
25};
26
27key rndc_key {
28	secret "1234abcd8765";
29	algorithm hmac-sha256;
30};
31
32controls {
33	inet 10.53.0.2 port @CONTROLPORT@ allow { any; } keys { rndc_key; };
34};
35
36view one {
37	match-clients { geoip db country country AU; };
38	zone "example" {
39		type primary;
40		file "example1.db";
41	};
42};
43
44view two {
45	match-clients { geoip db country country US; };
46	zone "example" {
47		type primary;
48		file "example2.db";
49	};
50};
51
52view three {
53	match-clients { geoip db country country GB; };
54	zone "example" {
55		type primary;
56		file "example3.db";
57	};
58};
59
60view four {
61	match-clients { geoip db country country CA; };
62	zone "example" {
63		type primary;
64		file "example4.db";
65	};
66};
67
68view five {
69	match-clients { geoip db country country CL; };
70	zone "example" {
71		type primary;
72		file "example5.db";
73	};
74};
75
76view six {
77	match-clients { geoip db country country DE; };
78	zone "example" {
79		type primary;
80		file "example6.db";
81	};
82};
83
84view seven {
85	match-clients { geoip db country country EH; };
86	zone "example" {
87		type primary;
88		file "example7.db";
89	};
90};
91
92view other {
93	match-clients { geoip db country country O1; };
94	zone "example" {
95		type primary;
96		file "exampleother.db";
97	};
98};
99
100view none {
101	match-clients { any; };
102	zone "example" {
103		type primary;
104		file "example.db.in";
105	};
106};
107