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 14include "../../_common/rndc.key"; 15 16controls { 17 inet 10.53.0.2 port @CONTROLPORT@ allow { any; } keys { rndc_key; }; 18}; 19 20 21options { 22 port @PORT@; 23 pid-file "named.pid"; 24 listen-on { 10.53.0.2; 10.53.0.4; }; 25 listen-on-v6 { none; }; 26 recursion no; 27 dnssec-validation no; 28}; 29 30view internal { 31 match-clients { 10.53.0.2; }; 32 allow-new-zones no; 33 recursion yes; 34 35 response-policy { zone "policy"; }; 36 37 zone "." { 38 type hint; 39 file "../../_common/root.hint"; 40 }; 41 42 zone "policy" { 43 type primary; 44 file "normal.db"; 45 }; 46}; 47 48view external { 49 match-clients { any; }; 50 allow-new-zones yes; 51 52 zone "." { 53 type hint; 54 file "../../_common/root.hint"; 55 }; 56}; 57 58# This view is only here to test that configuration context is cleaned 59# up correctly when using multiple named ACLs (regression test for RT #22739) 60acl match { none; }; 61acl nobody { none; }; 62view extra { 63 match-clients { match; }; 64 allow-new-zones yes; 65 allow-transfer { nobody; }; 66 allow-query { nobody; }; 67 allow-recursion { nobody; }; 68}; 69