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 14key rndc_key { 15 secret "1234abcd8765"; 16 algorithm @DEFAULT_HMAC@; 17}; 18 19key foo { 20 secret "aaaaaaaaaaaa"; 21 algorithm hmac-sha256; 22}; 23 24server 10.53.0.10 { 25 keys foo; 26}; 27 28controls { 29 inet 10.53.0.1 port @CONTROLPORT@ allow { any; } keys { rndc_key; }; 30}; 31 32options { 33 query-source address 10.53.0.1; 34 notify-source 10.53.0.1; 35 transfer-source 10.53.0.1; 36 port @PORT@; 37 pid-file "named.pid"; 38 listen-on { 10.53.0.1; }; 39 listen-on-v6 { none; }; 40 recursion yes; 41 dnssec-validation yes; 42 deny-answer-addresses { 192.0.2.0/24; 2001:db8:beef::/48; } 43 except-from { "example.org"; }; 44 deny-answer-aliases { "example.org"; } 45 except-from { "goodcname.example.net"; 46 "gooddname.example.net"; }; 47 allow-query {!10.53.0.8; any; }; 48 send-cookie yes; 49 nocookie-udp-size 512; 50}; 51 52zone "." { 53 type hint; 54 file "root.hint"; 55}; 56 57zone "example" { 58 type primary; 59 file "example.db"; 60}; 61