add "primaries" as a synonym for "masters" in named.conf

as "type primary" is preferred over "type master" now, it makes
sense to make "primaries" available as a synonym too.

added a correctness check to ensure "primaries" and "masters"
cannot both be used in the same zone.
This commit is contained in:
Evan Hunt
2020-06-17 02:02:27 -07:00
parent 4ea6bb7257
commit 16e14353b1
77 changed files with 441 additions and 324 deletions

View File

@@ -41,7 +41,7 @@ view alternate {
zone "update.nil" {
type slave;
masters { 10.53.0.1; };
primaries { 10.53.0.1; };
file "update.alt.bk";
allow-transfer { any; };
};
@@ -52,14 +52,14 @@ view primary {
zone "example.nil" {
type slave;
masters { 10.53.0.1; };
primaries { 10.53.0.1; };
file "example.bk";
allow-transfer { any; };
};
zone "update.nil" {
type slave;
masters { 10.53.0.1; };
primaries { 10.53.0.1; };
file "update.bk";
allow-transfer { any; };
};