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 region CA; }; 38 zone "example" { 39 type master; 40 file "example1.db"; 41 }; 42}; 43 44view three { 45 match-clients { geoip region OK; }; 46 zone "example" { 47 type master; 48 file "example3.db"; 49 }; 50}; 51 52view four { 53 match-clients { geoip region VA; }; 54 zone "example" { 55 type master; 56 file "example4.db"; 57 }; 58}; 59 60view five { 61 match-clients { geoip region GA; }; 62 zone "example" { 63 type master; 64 file "example5.db"; 65 }; 66}; 67 68view six { 69 match-clients { geoip region CO; }; 70 zone "example" { 71 type master; 72 file "example6.db"; 73 }; 74}; 75 76view seven { 77 match-clients { geoip region AK; }; 78 zone "example" { 79 type master; 80 file "example7.db"; 81 }; 82}; 83 84view none { 85 match-clients { any; }; 86 zone "example" { 87 type master; 88 file "example.db.in"; 89 }; 90}; 91