From 28ff6d69e068c14d3aff4455db4ad8d25097e9c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= Date: Tue, 25 Jan 2022 15:07:27 +0100 Subject: [PATCH] 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. --- bind9-next.spec | 5 ++++- named.conf.sample | 8 ++++---- named.rfc1912.zones | 10 +++++----- 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/bind9-next.spec b/bind9-next.spec index abc8d95..5d38b69 100644 --- a/bind9-next.spec +++ b/bind9-next.spec @@ -64,7 +64,7 @@ Summary: The Berkeley Internet Name Domain (BIND) DNS (Domain Name System) serv Name: bind9-next License: MPLv2.0 Version: 9.17.22 -Release: 1%{?dist} +Release: 2%{?dist} Url: https://www.isc.org/downloads/bind/ # Source0: https://downloads.isc.org/isc/bind9/%{version}/%{upname}-%{version}.tar.xz @@ -1078,6 +1078,9 @@ fi; %endif %changelog +* Tue Jan 25 2022 Petr Menšík - 9.17.22-2 +- Replace master with primary in configuration + * Fri Jan 21 2022 Petr Menšík - 9.17.22-1 - Update to 9.17.22 diff --git a/named.conf.sample b/named.conf.sample index d2ce6dd..0f3ae98 100644 --- a/named.conf.sample +++ b/named.conf.sample @@ -159,17 +159,17 @@ view "internal" */ zone "my.internal.zone" { - type master; + type primary; file "my.internal.zone.db"; }; zone "my.slave.internal.zone" { - type slave; + type secondary; file "slaves/my.slave.internal.zone.db"; masters { /* put master nameserver IPs here */ 127.0.0.1; } ; // put slave zones in the slaves/ directory so named can update them }; zone "my.ddns.internal.zone" { - type master; + type primary; allow-update { key ddns_key; }; file "dynamic/my.ddns.internal.zone.db"; // 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: zone "my.external.zone" { - type master; + type primary; file "my.external.zone.db"; }; }; diff --git a/named.rfc1912.zones b/named.rfc1912.zones index fa8caf5..2c3c2a8 100644 --- a/named.rfc1912.zones +++ b/named.rfc1912.zones @@ -15,31 +15,31 @@ // zone "localhost.localdomain" IN { - type master; + type primary; file "named.localhost"; allow-update { none; }; }; zone "localhost" IN { - type master; + type primary; file "named.localhost"; 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 { - type master; + type primary; file "named.loopback"; allow-update { none; }; }; zone "1.0.0.127.in-addr.arpa" IN { - type master; + type primary; file "named.loopback"; allow-update { none; }; }; zone "0.in-addr.arpa" IN { - type master; + type primary; file "named.empty"; allow-update { none; }; };