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 
     14 {% set max_stale_ttl = max_stale_ttl | default(3600) %}
     15 {% set stale_answer_ttl = stale_answer_ttl | default(4) %}
     16 {% set stale_refresh_time = stale_refresh_time | default(30) %}
     17 {% set stale_test_zone = stale_test_zone | default(False) %}
     18 
     19 key rndc_key {
     20 	secret "1234abcd8765";
     21 	algorithm @DEFAULT_HMAC@;
     22 };
     23 
     24 controls {
     25 	inet 10.53.0.1 port @CONTROLPORT@ allow { any; } keys { rndc_key; };
     26 };
     27 
     28 options {
     29 	query-source address 10.53.0.1;
     30 	notify-source 10.53.0.1;
     31 	transfer-source 10.53.0.1;
     32 	port @PORT@;
     33 	pid-file "named.pid";
     34 	listen-on { 10.53.0.1; };
     35 	listen-on-v6 { none; };
     36 	allow-transfer { any; };
     37 	recursion yes;
     38 	dnssec-validation no;
     39 	max-stale-ttl @max_stale_ttl@;
     40 	stale-answer-ttl @stale_answer_ttl@;
     41 	stale-answer-enable yes;
     42 	stale-cache-enable yes;
     43 {% if stale_refresh_time is not none %}
     44 	stale-refresh-time @stale_refresh_time@;
     45 {% endif %}
     46 	servfail-ttl 0;
     47 };
     48 
     49 zone "." {
     50 	type primary;
     51 	file "root.db";
     52 };
     53 
     54 {% if stale_test_zone %}
     55 zone "stale.test" {
     56 	type primary;
     57 	file "stale.test.db";
     58 };
     59 {% endif %}
     60