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.

(cherry picked from commit 16e14353b1)
This commit is contained in:
Evan Hunt
2020-06-17 02:02:27 -07:00
committed by Michał Kępień
parent fa29c95992
commit 04b9cdb53c
78 changed files with 414 additions and 303 deletions

View File

@@ -47,25 +47,25 @@ options {
zone "catalog1.example" {
type slave;
file "catalog1.example.db";
masters { 10.53.0.1; };
primaries { 10.53.0.1; };
};
zone "catalog2.example" {
type slave;
file "catalog2.example.db";
masters { 10.53.0.3; };
primaries { 10.53.0.3; };
};
zone "catalog3.example" {
type slave;
file "catalog3.example.db";
masters { 10.53.0.1; };
primaries { 10.53.0.1; };
};
zone "catalog4.example" {
type slave;
file "catalog4.example.db";
masters { 10.53.0.1; };
primaries { 10.53.0.1; };
};
key tsig_key. {