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 include "../../_common/rndc.key";
     15 
     16 controls {
     17 	inet 10.53.0.1 port @CONTROLPORT@ allow { any; } keys { rndc_key; };
     18 };
     19 
     20 options {
     21 	query-source address 10.53.0.1;
     22 	notify-source 10.53.0.1;
     23 	transfer-source 10.53.0.1;
     24 	port @PORT@;
     25 	pid-file "named.pid";
     26 	listen-on { 10.53.0.1; };
     27 	listen-on-v6 { none; };
     28 	allow-transfer { any; };
     29 	recursion no;
     30 	dnssec-validation no;
     31 	notify yes;
     32 };
     33 
     34 zone "." {
     35 	type primary;
     36 	file "root.db";
     37 };
     38 
     39 {% if enable_only_axfr_max_idle_time | default(False) %}
     40 zone "axfr-max-idle-time" {
     41 	type primary;
     42 	file "axfr-max-idle-time.db";
     43 };
     44 {% else %}
     45 zone "axfr-min-transfer-rate" {
     46 	type primary;
     47 	file "axfr-min-transfer-rate.db";
     48 };
     49 
     50 zone "axfr-max-transfer-time" {
     51 	type primary;
     52 	file "axfr-max-transfer-time.db";
     53 };
     54 
     55 zone "axfr-rndc-retransfer-force" {
     56 	type primary;
     57 	file "axfr-rndc-retransfer-force.db";
     58 };
     59 
     60 {% if enable_some_zones | default(True) %}
     61 zone "secondary" {
     62 	type primary;
     63 	allow-transfer { 10.53.0.1; 10.53.0.2; 10.53.0.6; 10.53.0.7; };
     64 	file "sec.db";
     65 };
     66 
     67 zone "edns-expire" {
     68 	type primary;
     69 	file "edns-expire.db";
     70 };
     71 
     72 zone "xot-primary-try-next" {
     73 	type primary;
     74 	file "xot-primary-try-next.db";
     75 };
     76 
     77 zone "axfr-too-big" {
     78 	type primary;
     79 	file "axfr-too-big.db";
     80 };
     81 
     82 zone "ixfr-too-big" {
     83 	type primary;
     84 	allow-update { any; };
     85 	file "ixfr-too-big.db";
     86 };
     87 
     88 zone "xfer-stats" {
     89 	type primary;
     90 	file "xfer-stats.db";
     91 };
     92 
     93 zone "dot-fallback" {
     94 	type primary;
     95 	file "dot-fallback.db";
     96 };
     97 {% endif %}
     98 {% endif %}