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 options {
     15 	query-source address 10.53.0.1;
     16 	notify-source 10.53.0.1;
     17 	transfer-source 10.53.0.1;
     18 	port @PORT@;
     19 	pid-file "named.pid";
     20 	session-keyfile "session.key";
     21 	listen-on { 10.53.0.1; 127.0.0.1; };
     22 	listen-on-v6 { none; };
     23 	allow-transfer { !10.53.0.1; any; };
     24 	recursion no;
     25 	notify yes;
     26 	dnssec-validation no;
     27 };
     28 
     29 key rndc_key {
     30 	secret "1234abcd8765";
     31 	algorithm @DEFAULT_HMAC@;
     32 };
     33 
     34 include "ddns.key";
     35 
     36 controls {
     37 	inet 10.53.0.1 port @CONTROLPORT@ allow { any; } keys { rndc_key; };
     38 };
     39 
     40 dlz "example one" {
     41 	database "dlopen ../driver/.libs/dlzexternal.so example.nil";
     42 };
     43 
     44 dlz "example two" {
     45 	database "dlopen ../driver/.libs/dlzexternal.so alternate.nil";
     46 };
     47 
     48 dlz "example three" {
     49 	database "dlopen ../driver/.libs/dlzexternal.so example.org";
     50 };
     51 
     52 dlz "example four" {
     53 	// Long zone name to trigger ISC_R_NOSPACE in dns_sdlz_putrr.
     54         database "dlopen ../driver/.libs/dlzexternal.so 123456789.123456789.123456789.123456789.123456789.example.foo";
     55 };
     56 
     57 dlz "unsearched1" {
     58 	database "dlopen ../driver/.libs/dlzexternal.so other.nil";
     59 	search no;
     60 };
     61 
     62 dlz "unsearched2" {
     63 	database "dlopen ../driver/.libs/dlzexternal.so zone.nil";
     64 	search no;
     65 };
     66 
     67 dlz redzone {
     68 	database "dlopen ../driver/.libs/dlzexternal.so .";
     69 	search no;
     70 };
     71 
     72 zone zone.nil {
     73 	type primary;
     74 	dlz unsearched2;
     75 };
     76 
     77 zone "." {
     78 	type redirect;
     79 	dlz redzone;
     80 };
     81 
     82 zone "." {
     83 	type primary;
     84 	file "root.db";
     85 };
     86