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