| 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 |
listen-on port @PORT@ { 10.53.0.3; }; |
| 16 |
transfer-source 10.53.0.3; |
| 17 |
pid-file "named.pid"; |
| 18 |
recursion no; |
| 19 |
}; |
| 20 |
|
| 21 |
key xfrkey { |
| 22 |
algorithm @DEFAULT_HMAC@; |
| 23 |
secret "9999abcd8765"; |
| 24 |
}; |
| 25 |
|
| 26 |
key notifykey3 { |
| 27 |
algorithm @DEFAULT_HMAC@; |
| 28 |
secret "3333abcd8765"; |
| 29 |
}; |
| 30 |
|
| 31 |
zone "test" { |
| 32 |
/* |
| 33 |
* Notify comes from a different IP address than the primary listening |
| 34 |
* address, and with a different key. |
| 35 |
*/ |
| 36 |
allow-notify { key notifykey3; }; |
| 37 |
type secondary; |
| 38 |
primaries { 10.53.0.1 port @PORT@ key xfrkey; }; |
| 39 |
}; |
| 40 |
|
| 41 |
key rndc_key { |
| 42 |
secret "1234abcd8765"; |
| 43 |
algorithm @DEFAULT_HMAC@; |
| 44 |
}; |
| 45 |
|
| 46 |
controls { |
| 47 |
inet 10.53.0.3 port @CONTROLPORT@ allow { any; } keys { rndc_key; }; |
| 48 |
}; |