| 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.7 port @CONTROLPORT@ allow { any; } keys { rndc_key; }; |
| 21 |
}; |
| 22 |
|
| 23 |
options { |
| 24 |
query-source address 10.53.0.7; |
| 25 |
notify-source 10.53.0.7; |
| 26 |
transfer-source 10.53.0.7; |
| 27 |
port @PORT@; |
| 28 |
pid-file "named.pid"; |
| 29 |
listen-on { 10.53.0.7; }; |
| 30 |
listen-on-v6 { none; }; |
| 31 |
recursion yes; |
| 32 |
dnssec-validation no; |
| 33 |
qname-minimization off; |
| 34 |
|
| 35 |
stale-answer-enable yes; |
| 36 |
stale-cache-enable yes; |
| 37 |
max-stale-ttl 3600; |
| 38 |
|
| 39 |
stale-answer-client-timeout off; |
| 40 |
stale-refresh-time 30; |
| 41 |
|
| 42 |
max-cache-ttl 300; |
| 43 |
max-ncache-ttl 300; |
| 44 |
}; |
| 45 |
|
| 46 |
zone "." { |
| 47 |
type hint; |
| 48 |
file "root.db"; |
| 49 |
}; |
| 50 |
|
| 51 |
// Authoritative zone: nonexist.target.stale -> NXDOMAIN |
| 52 |
zone "target.stale" { |
| 53 |
type primary; |
| 54 |
file "target.stale.db"; |
| 55 |
}; |
| 56 |
|
| 57 |
// Forward source.stale queries to ans2 |
| 58 |
zone "source.stale" { |
| 59 |
type forward; |
| 60 |
forward only; |
| 61 |
forwarders { 10.53.0.2 port @PORT@; }; |
| 62 |
}; |