named.conf.in revision 1.1.1.1
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 12options { 13 query-source address 10.53.0.1 dscp 1; 14 notify-source 10.53.0.1 dscp 2; 15 transfer-source 10.53.0.1 dscp 3; 16 port @PORT@; 17 pid-file "named.pid"; 18 listen-on { 10.53.0.1; }; 19 listen-on-v6 { none; }; 20 recursion yes; 21 deny-answer-addresses { 192.0.2.0/24; 2001:db8:beef::/48; } 22 except-from { "example.org"; }; 23 deny-answer-aliases { "example.org"; } 24 except-from { "goodcname.example.net"; 25 "gooddname.example.net"; }; 26 allow-query {!10.53.0.8; any; }; 27 max-zone-ttl unlimited; 28 attach-cache "globalcache"; 29}; 30 31server 10.42.23.3/32 { 32 notify-source 10.42.22.1; 33 query-source address 10.42.22.1 port 0; 34 transfer-source 10.42.22.1; 35}; 36 37server fd92:7065:b8e:ffff::1000 { 38 notify-source-v6 fd92:7065:b8e:ffff::1001; 39 query-source-v6 address fd92:7065:b8e:ffff::1001 port 0; 40 transfer-source-v6 fd92:7065:b8e:ffff::1001; 41}; 42 43/* 44 * Must be first view so that there is a CH cache with name 45 * "globalcache" before the recursive "default"/IN view is configured. 46 */ 47view "class" chaos { 48 match-clients { none; }; 49}; 50 51/* 52 * Must be second view so that so that we can check we don't attach to the 53 * "globalcache"/CH cache. 54 */ 55view "default" { 56 zone "." { 57 type hint; 58 file "root.hint"; 59 }; 60}; 61