Home | History | Annotate | Line # | Download | only in ns2
      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 key rndc_key {
     15     secret "1234abcd8765";
     16 	algorithm @DEFAULT_HMAC@;
     17 };
     18 
     19 controls {
     20 	inet 10.53.0.1 port @CONTROLPORT@ allow { any; } keys { rndc_key; };
     21 };
     22 
     23 options {
     24 	query-source address 10.53.0.2;
     25 	notify-source 10.53.0.2;
     26 	transfer-source 10.53.0.2;
     27 	port @PORT@;
     28 	listen-on { 10.53.0.2; };
     29 	pid-file "named.pid";
     30 	notify no;
     31 	dnssec-validation no;
     32 	allow-query { any; };
     33 };
     34 
     35 zone "allowed" {
     36     type primary;
     37 	file "allowed.db";
     38 	allow-transfer { none; };
     39 };
     40 
     41 zone "baddomain" {
     42     type primary;
     43     file "baddomain.db";
     44     allow-transfer { none; };
     45 };
     46 
     47 zone "gooddomain" {
     48     type primary;
     49     file "gooddomain.db";
     50     allow-transfer { none; };
     51 };
     52 
     53 zone "rpz-external.local" {
     54     type primary;
     55     file "rpz-external.local.db";
     56     allow-transfer { any; };
     57 };
     58