Home | History | Annotate | Line # | Download | only in ns1
      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 {% set wrongoption = wrongoption | default(False) %}
     14 
     15 options {
     16 	query-source address 10.53.0.1;
     17 	notify-source 10.53.0.1;
     18 	transfer-source 10.53.0.1;
     19 	port @PORT@;
     20 	pid-file "named.pid";
     21 	listen-on { 10.53.0.1; };
     22 	listen-on-v6 { none; };
     23 	recursion yes;
     24 	dnssec-validation no;
     25 	attach-cache "globalcache";
     26         max-zone-ttl unlimited;
     27         resolver-query-timeout 5000; # 5 seconds
     28         max-recursion-queries 100;
     29 };
     30 
     31 view "default" {
     32 	zone "." {
     33 		type hint;
     34 		file "root.hint";
     35 	};
     36 {% if wrongoption %}
     37 	forwarders port 9999999 { 127.0.0.1; };
     38 {% endif %}
     39 };
     40 
     41 key rndc_key {
     42 	secret "1234abcd8765";
     43 	algorithm @DEFAULT_HMAC@;
     44 };
     45 
     46 controls {
     47 	inet 10.53.0.1 port @CONTROLPORT@ allow { any; } keys { rndc_key; };
     48 };
     49