1/* 2 * Copyright (C) 2014 Internet Systems Consortium, Inc. ("ISC") 3 * 4 * Permission to use, copy, modify, and/or distribute this software for any 5 * purpose with or without fee is hereby granted, provided that the above 6 * copyright notice and this permission notice appear in all copies. 7 * 8 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH 9 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 10 * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, 11 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 12 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 13 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 14 * PERFORMANCE OF THIS SOFTWARE. 15 */ 16 17key rndc_key { 18 secret "1234abcd8765"; 19 algorithm hmac-sha256; 20}; 21 22controls { 23 inet 10.53.0.1 port 9953 allow { any; } keys { rndc_key; }; 24}; 25 26options { 27 query-source address 10.53.0.1 dscp 1; 28 notify-source 10.53.0.1 dscp 2; 29 transfer-source 10.53.0.1 dscp 3; 30 port 5300; 31 pid-file "named.pid"; 32 listen-on { 10.53.0.1; }; 33 listen-on-v6 { none; }; 34 recursion yes; 35 acache-enable yes; 36 deny-answer-addresses { 192.0.2.0/24; 2001:db8:beef::/48; } 37 except-from { "example.org"; }; 38 deny-answer-aliases { "example.org"; } 39 except-from { "goodcname.example.net"; 40 "gooddname.example.net"; }; 41 allow-query {!10.53.0.8; any; }; 42 request-sit yes; 43 nosit-udp-size 512; 44}; 45 46zone "." { 47 type hint; 48 file "root.hint"; 49}; 50 51zone "example" { 52 type master; 53 file "example.db"; 54}; 55