Home | History | Annotate | Line # | Download | only in ns3
      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 /*
     15  * Test serve-stale interaction with fetch-limits (dual-mode).
     16  */
     17 
     18 key rndc_key {
     19 	secret "1234abcd8765";
     20 	algorithm @DEFAULT_HMAC@;
     21 };
     22 
     23 controls {
     24 	inet 10.53.0.3 port @CONTROLPORT@ allow { any; } keys { rndc_key; };
     25 };
     26 
     27 options {
     28 	query-source address 10.53.0.3;
     29 	notify-source 10.53.0.3;
     30 	transfer-source 10.53.0.3;
     31 	port @PORT@;
     32 	pid-file "named.pid";
     33 	listen-on { 10.53.0.3; };
     34 	listen-on-v6 { none; };
     35 	dnssec-validation no;
     36 	recursion yes;
     37 	/*
     38 	 * stale-answer-enable is not strictly required because serving
     39 	 * stale answers is enabled in the test via rndc.
     40 	 */
     41 	stale-answer-enable yes;
     42 	stale-cache-enable yes;
     43 	stale-answer-ttl 3;
     44 	stale-refresh-time 4;
     45 	resolver-query-timeout 10000; # 10 seconds
     46 	fetches-per-zone 1 fail;
     47 	fetches-per-server 1 fail;
     48 	max-stale-ttl 3600;
     49 };
     50 
     51 zone "." {
     52 	type secondary;
     53 	primaries { 10.53.0.1; };
     54 	file "root.bk";
     55 };
     56