named6.conf 2.11 KB
Newer Older
Evan Hunt's avatar
Evan Hunt committed
1
/*
Tinderbox User's avatar
Tinderbox User committed
2
 * Copyright (C) 2013, 2014  Internet Systems Consortium, Inc. ("ISC")
Evan Hunt's avatar
Evan Hunt committed
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
 *
 * Permission to use, copy, modify, and/or distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 *
 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 * PERFORMANCE OF THIS SOFTWARE.
 */

// NS2

controls { /* empty */ };

options {
	query-source address 10.53.0.2;
	notify-source 10.53.0.2;
	transfer-source 10.53.0.2;
	port 5300;
	pid-file "named.pid";
	listen-on { 10.53.0.2; };
Evan Hunt's avatar
Evan Hunt committed
28
	listen-on-v6 { fd92:7065:b8e:ffff::1; };
Evan Hunt's avatar
Evan Hunt committed
29
30
31
32
33
34
	recursion no;
	geoip-directory "../data";
};

key rndc_key {
	secret "1234abcd8765";
35
	algorithm hmac-sha256;
Evan Hunt's avatar
Evan Hunt committed
36
37
38
39
40
41
42
};

controls {
	inet 10.53.0.2 port 9953 allow { any; } keys { rndc_key; };
};

view one {
Mark Andrews's avatar
Mark Andrews committed
43
44
45
46
47
	match-clients { geoip city "Redwood City"; };
	zone "example" {
		type master;
		file "example1.db";
	};
Evan Hunt's avatar
Evan Hunt committed
48
49
50
};

view two {
Mark Andrews's avatar
Mark Andrews committed
51
52
53
54
55
	match-clients { geoip city "Santa Cruz"; };
	zone "example" {
		type master;
		file "example2.db";
	};
Evan Hunt's avatar
Evan Hunt committed
56
57
58
};

view three {
Mark Andrews's avatar
Mark Andrews committed
59
60
61
62
63
	match-clients { geoip city "Oklahoma City"; };
	zone "example" {
		type master;
		file "example3.db";
	};
Evan Hunt's avatar
Evan Hunt committed
64
65
66
};

view four {
Mark Andrews's avatar
Mark Andrews committed
67
68
69
70
71
	match-clients { geoip city "Ashland"; };
	zone "example" {
		type master;
		file "example4.db";
	};
Evan Hunt's avatar
Evan Hunt committed
72
73
74
};

view five {
Mark Andrews's avatar
Mark Andrews committed
75
76
77
78
79
	match-clients { geoip city "Atlanta"; };
	zone "example" {
		type master;
		file "example5.db";
	};
Evan Hunt's avatar
Evan Hunt committed
80
81
82
};

view six {
Mark Andrews's avatar
Mark Andrews committed
83
84
85
86
87
	match-clients { geoip city "Morrison"; };
	zone "example" {
		type master;
		file "example6.db";
	};
Evan Hunt's avatar
Evan Hunt committed
88
89
90
};

view seven {
Mark Andrews's avatar
Mark Andrews committed
91
92
93
94
95
	match-clients { geoip city "Ketchikan"; };
	zone "example" {
		type master;
		file "example7.db";
	};
Evan Hunt's avatar
Evan Hunt committed
96
97
98
};

view none {
Mark Andrews's avatar
Mark Andrews committed
99
100
101
102
103
	match-clients { any; };
	zone "example" {
		type master;
		file "example.db.in";
	};
Evan Hunt's avatar
Evan Hunt committed
104
};