| 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.1; }; |
| 16 |
transfer-source 10.53.0.1; |
| 17 |
pid-file "named.pid"; |
| 18 |
recursion no; |
| 19 |
/* |
| 20 |
* Notifications are sent from 10.53.1.1. This, the `notify |
| 21 |
* explicit` and `also-notify` below, enables us to use specific TSIG |
| 22 |
* keys for notifications for each secondary server instead of using |
| 23 |
* the xfer TSIG key. |
| 24 |
*/ |
| 25 |
notify-source 10.53.1.1; |
| 26 |
/* |
| 27 |
* The test. zone doesn't specify other NS, however this makes it clear |
| 28 |
* this NS must only notify from also-notify list. |
| 29 |
*/ |
| 30 |
notify explicit; |
| 31 |
}; |
| 32 |
|
| 33 |
key xfrkey { |
| 34 |
algorithm @DEFAULT_HMAC@; |
| 35 |
secret "9999abcd8765"; |
| 36 |
}; |
| 37 |
|
| 38 |
key notifykey2 { |
| 39 |
algorithm @DEFAULT_HMAC@; |
| 40 |
secret "2222abcd8765"; |
| 41 |
}; |
| 42 |
|
| 43 |
key notifykey3 { |
| 44 |
algorithm @DEFAULT_HMAC@; |
| 45 |
secret "3333abcd8765"; |
| 46 |
}; |
| 47 |
|
| 48 |
key notifykey4 { |
| 49 |
algorithm @DEFAULT_HMAC@; |
| 50 |
secret "4444abcd8765"; |
| 51 |
}; |
| 52 |
|
| 53 |
remote-servers secondariesbis { |
| 54 |
10.53.0.4 port @PORT@; /* gets notifykey4 */ |
| 55 |
}; |
| 56 |
|
| 57 |
remote-servers secondaries { |
| 58 |
10.53.0.3 port @PORT@ key notifykey3; |
| 59 |
secondariesbis key notifykey4; |
| 60 |
10.53.0.2 port @PORT@; /* gets notifykey2 */ |
| 61 |
}; |
| 62 |
|
| 63 |
zone "test" { |
| 64 |
type primary; |
| 65 |
allow-transfer { key xfrkey; }; |
| 66 |
also-notify { secondaries key notifykey2; }; |
| 67 |
file "test.db"; |
| 68 |
}; |
| 69 |
|
| 70 |
key rndc_key { |
| 71 |
secret "1234abcd8765"; |
| 72 |
algorithm @DEFAULT_HMAC@; |
| 73 |
}; |
| 74 |
|
| 75 |
controls { |
| 76 |
inet 10.53.0.1 port @CONTROLPORT@ allow { any; } keys { rndc_key; }; |
| 77 |
}; |