Replace master with primary in configuration

Use more friendly value for primary and secondary zones. It used master
for ages, but that might have wrong connotation to someone. Use
something without problematic history.
This commit is contained in:
Petr Menšík 2022-01-25 15:07:27 +01:00
parent 9d4510ecc6
commit 28ff6d69e0
3 changed files with 13 additions and 10 deletions

View File

@ -64,7 +64,7 @@ Summary: The Berkeley Internet Name Domain (BIND) DNS (Domain Name System) serv
Name: bind9-next Name: bind9-next
License: MPLv2.0 License: MPLv2.0
Version: 9.17.22 Version: 9.17.22
Release: 1%{?dist} Release: 2%{?dist}
Url: https://www.isc.org/downloads/bind/ Url: https://www.isc.org/downloads/bind/
# #
Source0: https://downloads.isc.org/isc/bind9/%{version}/%{upname}-%{version}.tar.xz Source0: https://downloads.isc.org/isc/bind9/%{version}/%{upname}-%{version}.tar.xz
@ -1078,6 +1078,9 @@ fi;
%endif %endif
%changelog %changelog
* Tue Jan 25 2022 Petr Menšík <pemensik@redhat.com> - 9.17.22-2
- Replace master with primary in configuration
* Fri Jan 21 2022 Petr Menšík <pemensik@redhat.com> - 9.17.22-1 * Fri Jan 21 2022 Petr Menšík <pemensik@redhat.com> - 9.17.22-1
- Update to 9.17.22 - Update to 9.17.22

View File

@ -159,17 +159,17 @@ view "internal"
*/ */
zone "my.internal.zone" { zone "my.internal.zone" {
type master; type primary;
file "my.internal.zone.db"; file "my.internal.zone.db";
}; };
zone "my.slave.internal.zone" { zone "my.slave.internal.zone" {
type slave; type secondary;
file "slaves/my.slave.internal.zone.db"; file "slaves/my.slave.internal.zone.db";
masters { /* put master nameserver IPs here */ 127.0.0.1; } ; masters { /* put master nameserver IPs here */ 127.0.0.1; } ;
// put slave zones in the slaves/ directory so named can update them // put slave zones in the slaves/ directory so named can update them
}; };
zone "my.ddns.internal.zone" { zone "my.ddns.internal.zone" {
type master; type primary;
allow-update { key ddns_key; }; allow-update { key ddns_key; };
file "dynamic/my.ddns.internal.zone.db"; file "dynamic/my.ddns.internal.zone.db";
// put dynamically updateable zones in the slaves/ directory so named can update them // put dynamically updateable zones in the slaves/ directory so named can update them
@ -202,7 +202,7 @@ view "external"
// contain entries for just your web and mail servers: // contain entries for just your web and mail servers:
zone "my.external.zone" { zone "my.external.zone" {
type master; type primary;
file "my.external.zone.db"; file "my.external.zone.db";
}; };
}; };

View File

@ -15,31 +15,31 @@
// //
zone "localhost.localdomain" IN { zone "localhost.localdomain" IN {
type master; type primary;
file "named.localhost"; file "named.localhost";
allow-update { none; }; allow-update { none; };
}; };
zone "localhost" IN { zone "localhost" IN {
type master; type primary;
file "named.localhost"; file "named.localhost";
allow-update { none; }; allow-update { none; };
}; };
zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN { zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN {
type master; type primary;
file "named.loopback"; file "named.loopback";
allow-update { none; }; allow-update { none; };
}; };
zone "1.0.0.127.in-addr.arpa" IN { zone "1.0.0.127.in-addr.arpa" IN {
type master; type primary;
file "named.loopback"; file "named.loopback";
allow-update { none; }; allow-update { none; };
}; };
zone "0.in-addr.arpa" IN { zone "0.in-addr.arpa" IN {
type master; type primary;
file "named.empty"; file "named.empty";
allow-update { none; }; allow-update { none; };
}; };