]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Replace "master/slave" terms in code comments
authorMatthijs Mekking <matthijs@isc.org>
Tue, 5 Oct 2021 09:07:44 +0000 (11:07 +0200)
committerEvan Hunt <each@isc.org>
Tue, 12 Oct 2021 20:09:00 +0000 (13:09 -0700)
Replace those terms with the preferred "primary/secondary" keywords.

23 files changed:
bin/check/named-checkconf.c
bin/dnssec/dnssec-signzone.c
bin/named/server.c
bin/named/statschannel.c
bin/named/zoneconf.c
bin/nsupdate/nsupdate.c
conftools/perllib/dnsconf/named1.conf
fuzz/isc_lex_gettoken.in/named.conf
lib/dns/catz.c
lib/dns/dlz.c
lib/dns/include/dns/ipkeylist.h
lib/dns/include/dns/master.h
lib/dns/include/dns/sdb.h
lib/dns/include/dns/sdlz.h
lib/dns/include/dns/view.h
lib/dns/include/dns/zone.h
lib/dns/include/dns/zt.h
lib/dns/xfrin.c
lib/dns/zone.c
lib/ns/client.c
lib/ns/query.c
lib/ns/update.c
lib/ns/xfrout.c

index 3240e0cb3426427f3b198c344fd502387a85ade1..b6f02ba1e0f2c718676aac7c22559d8a8aba69b8 100644 (file)
@@ -275,7 +275,7 @@ configure_zone(const char *vclass, const char *view, const cfg_obj_t *zconfig,
        }
 
        /*
-        * Is the redirect zone configured as a slave?
+        * Is the redirect zone configured as a secondary?
         */
        if (strcasecmp(cfg_obj_asstring(typeobj), "redirect") == 0) {
                cfg_map_get(zoptions, "primaries", &primariesobj);
index 42cfa19ac5bfa826c7e41ae7473e41cb5a486608..ce5baa842bce8e9973709264ff35d0bce0cf7898 100644 (file)
@@ -1580,7 +1580,7 @@ signapex(void) {
 }
 
 /*%
- * Assigns a node to a worker thread.  This is protected by the master task's
+ * Assigns a node to a worker thread.  This is protected by the primary task's
  * lock.
  */
 static void
index a54317ebe7b49461f6925ae36dc81127e52ac629..a83c8d689dc6a85cfcec3d28a652de91d4ea365c 100644 (file)
@@ -4136,9 +4136,9 @@ configure_view(dns_view_t *view, dns_viewlist_t *viewlist, cfg_obj_t *config,
        }
 
        /*
-        * Check that a master or slave zone was found for each
-        * zone named in the response policy statement
-        * unless we are using RPZ service interface.
+        * Check that a primary or secondary zone was found for each
+        * zone named in the response policy statement, unless we are
+        * using RPZ service interface.
         */
        if (view->rpzs != NULL && !view->rpzs->p.dnsrps_enabled) {
                dns_rpz_num_t n;
@@ -6597,8 +6597,8 @@ configure_zone(const cfg_obj_t *config, const cfg_obj_t *zconfig,
         *   - The zone's view exists
         *   - A zone with the right name exists in the view
         *   - The zone is compatible with the config
-        *     options (e.g., an existing master zone cannot
-        *     be reused if the options specify a slave zone)
+        *     options (e.g., an existing primary zone cannot
+        *     be reused if the options specify a secondary zone)
         *   - The zone was not and is still not a response policy zone
         *     or the zone is a policy zone with an unchanged number
         *     and we are using the old policy zone summary data.
@@ -9718,7 +9718,7 @@ view_loaded(void *arg) {
        /*
         * Force zone maintenance.  Do this after loading
         * so that we know when we need to force AXFR of
-        * slave zones whose master files are missing.
+        * secondary zones whose master files are missing.
         *
         * We use the zoneload reference counter to let us
         * know when all views are finished.
@@ -14368,7 +14368,7 @@ rmzone(isc_task_t *task, isc_event_t *event) {
                dns_zone_unload(zone);
        }
 
-       /* Clean up stub/slave zone files if requested to do so */
+       /* Clean up stub/secondary zone files if requested to do so */
        dns_zone_getraw(zone, &raw);
        mayberaw = (raw != NULL) ? raw : zone;
 
@@ -14500,7 +14500,7 @@ named_server_delzone(named_server_t *server, isc_lex_t *lex,
        isc_task_send(task, &dzevent);
        dz = NULL;
 
-       /* Inform user about cleaning up stub/slave zone files */
+       /* Inform user about cleaning up stub/secondary zone files */
        dns_zone_getraw(zone, &raw);
        mayberaw = (raw != NULL) ? raw : zone;
 
index 0e22261cd0a1a8417075f16a234ad73efeeb57b7..c9685d8e1915f4710ee0f27e5590800efb9b2c81 100644 (file)
@@ -1819,10 +1819,9 @@ zone_xmlrender(dns_zone_t *zone, void *arg) {
 
        /*
         * Export zone timers to the statistics channel in XML format.  For
-        * master zones, only include the loaded time.  For slave zones, also
-        * include the expires and refresh times.
+        * primary zones, only include the loaded time.  For secondary zones,
+        * also include the expire and refresh times.
         */
-
        CHECK(dns_zone_getloadtime(zone, &timestamp));
 
        isc_time_formatISO8601(&timestamp, buf, 64);
@@ -2553,6 +2552,7 @@ zone_jsonrender(dns_zone_t *zone, void *arg) {
        json_object *zonearray = (json_object *)arg;
        json_object *zoneobj = NULL;
        dns_zonestat_level_t statlevel;
+       isc_time_t timestamp;
 
        statlevel = dns_zone_getstatlevel(zone);
        if (statlevel == dns_zonestat_none) {
@@ -2579,13 +2579,11 @@ zone_jsonrender(dns_zone_t *zone, void *arg) {
        }
 
        /*
-        * Export zone timers to the statistics channel in JSON format.  For
-        * master zones, only include the loaded time.  For slave zones, also
-        * include the expires and refresh times.
+        * Export zone timers to the statistics channel in JSON format.
+        * For primary zones, only include the loaded time.  For secondary
+        * zones, also include the expire and refresh times.
         */
 
-       isc_time_t timestamp;
-
        CHECK(dns_zone_getloadtime(zone, &timestamp));
 
        isc_time_formatISO8601(&timestamp, buf, 64);
index c041b992193932cf75f28f82fb9418bc89426a78..a7b83fc7228fea145ebfaf5cc47eaa82bf8fc35c 100644 (file)
@@ -1024,7 +1024,7 @@ named_zone_configure(const cfg_obj_t *config, const cfg_obj_t *vconfig,
        }
 
        /*
-        * Unless we're using some alternative database, a master zone
+        * Unless we're using some alternative database, a primary zone
         * will be needing a master file.
         */
        if (ztype == dns_zone_primary && cpval == default_dbtype &&
@@ -1227,7 +1227,7 @@ named_zone_configure(const cfg_obj_t *config, const cfg_obj_t *vconfig,
        }
 
        /*
-        * Configure master functionality.  This applies
+        * Configure authoritative zone functionality.  This applies
         * to primary servers (type "primary") and secondaries
         * acting as primaries (type "secondary"), but not to stubs.
         */
@@ -1746,7 +1746,7 @@ named_zone_configure(const cfg_obj_t *config, const cfg_obj_t *vconfig,
        }
 
        /*%
-        * Primary master functionality.
+        * Configure primary zone functionality.
         */
        if (ztype == dns_zone_primary) {
                obj = NULL;
@@ -1872,7 +1872,7 @@ named_zone_configure(const cfg_obj_t *config, const cfg_obj_t *vconfig,
        }
 
        /*
-        * Configure slave functionality.
+        * Configure secondary zone functionality.
         */
        switch (ztype) {
        case dns_zone_mirror:
@@ -1888,7 +1888,7 @@ named_zone_configure(const cfg_obj_t *config, const cfg_obj_t *vconfig,
                        dns_zone_setxfracl(zone, none);
                        dns_acl_detach(&none);
                }
-       /* FALLTHROUGH */
+               /* FALLTHROUGH */
        case dns_zone_secondary:
        case dns_zone_stub:
        case dns_zone_redirect:
index 52d482f90916f9a27dbf3f08ad373f6500d80466..15d53cb0b19769524c891ef51747cdf7f7572437 100644 (file)
@@ -682,7 +682,7 @@ doshutdown(void) {
        isc_task_detach(&global_task);
 
        /*
-        * The isc_mem_put of master_servers must be before the
+        * The isc_mem_put of primary_servers must be before the
         * isc_mem_put of servers as it sets the servers pointer
         * to NULL.
         */
@@ -3225,7 +3225,7 @@ start_update(void) {
        /*
         * If we have both the zone and the servers we have enough information
         * to send the update straight away otherwise we need to discover
-        * the zone and / or the master server.
+        * the zone and / or the primary server.
         */
        if (userzone != NULL && !default_servers && !usegsstsig) {
                master_from_servers();
index b28640a98f2003008b0cdb854c6480f5483a3915..6326a38c2f80d56f40b14510670cc58aa1868cd8 100644 (file)
@@ -39,22 +39,22 @@ zone "." {
 #      };
 #
 #      zone "0.0.127.in-addr.arpa" {
-#              type master;
+#              type primary;
 #              file "/etc/namedb/localhost.rev";
 #      };
 #
 #      zone "10.in-addr.arpa" {
-#              type master;
+#              type primary;
 #              file "/etc/namedb/primary/10";
 #      };
 #
 #      zone "jab.fr" {
-#              type master;
+#              type primary;
 #              file "/etc/namedb/primary/jab.fr";
 #      };
 #
 ##     zone "test-zone.com" {
-##             type master;
+##             type primary;
 ##             file "/usr/tmp/test-zone.com";
 ##     };
 #};
index cb6c87af29b76c489994d309c438b558ab745898..c0335ba8051a0cd5e16ef4a5d86a7bf54e7de896 100644 (file)
@@ -93,7 +93,7 @@ options {
        // forwarding behavior, i.e. ask the forwarders first, and if that
        // doesn't work then do the full lookup.  You can also say
        // "forward only;" which is what used to be specified with
-       // "slave" or "options forward-only".  "only" will never attempt
+       // "secondary" or "options forward-only".  "only" will never attempt
        // a full lookup; only the forwarders will be used.
        forward first;
        forwarders {
index 6767d875f10bb2f9edd5d200e746ed04b8665fbd..c7c0f26d3e4b887883bfababd7ea1418dc636dac 100644 (file)
@@ -1111,7 +1111,7 @@ catz_process_masters(dns_catz_zone_t *zone, dns_ipkeylist_t *ipkl,
 
                /*
                 * We're pre-preparing the data once, we'll put it into
-                * the right spot in the masters array once we find it.
+                * the right spot in the primaries array once we find it.
                 */
                result = dns_rdataset_first(value);
                RUNTIME_CHECK(result == ISC_R_SUCCESS);
@@ -1165,10 +1165,9 @@ catz_process_masters(dns_catz_zone_t *zone, dns_ipkeylist_t *ipkl,
                }
 
                /*
-                * We have to find the appropriate labeled record in masters
-                * if it exists.
-                * In common case we'll have no more than 3-4 records here so
-                * no optimization.
+                * We have to find the appropriate labeled record in
+                * primaries if it exists.  In the common case we'll
+                * have no more than 3-4 records here, so no optimization.
                 */
                for (i = 0; i < ipkl->count; i++) {
                        if (ipkl->labels[i] != NULL &&
@@ -1606,16 +1605,16 @@ cleanup:
        return (result);
 }
 
+/*
+ * We have to generate a text buffer with regular zone config:
+ * zone "foo.bar" {
+ *     type secondary;
+ *     primaries [ dscp X ] { ip1 port port1; ip2 port port2; };
+ * }
+ */
 isc_result_t
 dns_catz_generate_zonecfg(dns_catz_zone_t *zone, dns_catz_entry_t *entry,
                          isc_buffer_t **buf) {
-       /*
-        * We have to generate a text buffer with regular zone config:
-        * zone "foo.bar" {
-        *      type slave;
-        *      masters [ dscp X ] { ip1 port port1; ip2 port port2; };
-        * }
-        */
        isc_buffer_t *buffer = NULL;
        isc_region_t region;
        isc_result_t result;
@@ -1640,9 +1639,10 @@ dns_catz_generate_zonecfg(dns_catz_zone_t *zone, dns_catz_entry_t *entry,
        isc_buffer_putstr(buffer, "\" { type slave; masters");
 
        /*
-        * DSCP value has no default, but when it is specified, it is identical
-        * for all masters and cannot be overridden for a specific master IP, so
-        * use the DSCP value set for the first master
+        * DSCP value has no default, but when it is specified, it is
+        * identical for all primaries and cannot be overridden for a
+        * specific primary IP, so use the DSCP value set for the first
+        * primary.
         */
        if (entry->opts.masters.count > 0 && entry->opts.masters.dscps[0] >= 0)
        {
@@ -1655,7 +1655,7 @@ dns_catz_generate_zonecfg(dns_catz_zone_t *zone, dns_catz_entry_t *entry,
        isc_buffer_putstr(buffer, " { ");
        for (i = 0; i < entry->opts.masters.count; i++) {
                /*
-                * Every master must have an IP address assigned.
+                * Every primary must have an IP address assigned.
                 */
                switch (entry->opts.masters.addrs[i].type.sa.sa_family) {
                case AF_INET:
index 760a7d5727d6e61589c2e7cc39b120a2e092590e..6242d91ca1e519b6cb33fd00e1c6859d17837e24 100644 (file)
@@ -401,7 +401,7 @@ dns_dlzunregister(dns_dlzimplementation_t **dlzimp) {
 /*
  * Create a writeable DLZ zone. This can be called by DLZ drivers
  * during configure() to create a zone that can be updated. The zone
- * type is set to dns_zone_dlz, which is equivalent to a master zone
+ * type is set to dns_zone_dlz, which is equivalent to a primary zone
  *
  * This function uses a callback setup in dns_dlzconfigure() to call
  * into the server zone code to setup the remaining pieces of server
index de2010d0a84548945544f174d7672706b129df4c..45af1af1c1c697386f1e6e60f7f9eb9532cdeca0 100644 (file)
@@ -20,7 +20,7 @@
 
 /*%
  * A structure holding a list of addresses, dscps and keys.  Used to
- * store masters for a slave zone, created by parsing config options.
+ * store primaries for a secondary zone, created by parsing config options.
  */
 struct dns_ipkeylist {
        isc_sockaddr_t *addrs;
index 7a170a2a44f34c20908d235fa47311ffa137426d..8b81dc0fe43fdd41c050b6afbb647137dcaf77c9 100644 (file)
@@ -35,7 +35,7 @@
 #define DNS_MASTER_NOINCLUDE 0x00000004 /*%< Disallow $INCLUDE directives. */
 #define DNS_MASTER_ZONE             0x00000008 /*%< Loading a zone master file. */
 #define DNS_MASTER_HINT             0x00000010 /*%< Loading a hint master file. */
-#define DNS_MASTER_SLAVE     0x00000020 /*%< Loading a slave master file. */
+#define DNS_MASTER_SLAVE     0x00000020 /*%< Loading a secondary master file. */
 #define DNS_MASTER_CHECKNS                    \
        0x00000040 /*%<                       \
                    * Check NS records to see \
@@ -88,7 +88,7 @@ struct dns_masterrawheader {
        uint32_t sourceserial; /* Source serial number (used
                                * by inline-signing zones) */
        uint32_t lastxfrin;    /* timestamp of last transfer
-                               * (used by slave zones) */
+                               * (used by secondary zones) */
 };
 
 /* The structure for each RRset */
index 7d972ff300b9229a3bc634d2eaf4f9ca1fb24c29..b37872b9f9afbac8ceca4c755ff1a4c0760c204f 100644 (file)
@@ -201,7 +201,7 @@ dns_sdb_putsoa(dns_sdblookup_t *lookup, const char *mname, const char *rname,
 /*%<
  * This function may optionally be called from the 'authority' callback
  * to simplify construction of the SOA record for 'zone'.  It will
- * provide a SOA listing 'mname' as as the master server and 'rname' as
+ * provide a SOA listing 'mname' as as the primary server and 'rname' as
  * the responsible person mailbox.  It is the responsibility of the
  * driver to increment the serial number between responses if necessary.
  * All other SOA fields will have reasonable default values.
index f4278b3ede7a27dfee946305788f4552f7b3cb8a..ef403eaa5d4859921112097243f6a05178bf8592 100644 (file)
@@ -337,7 +337,7 @@ dns_sdlz_putsoa_t dns_sdlz_putsoa;
 /*%<
  * This function may optionally be called from the 'authority'
  * callback to simplify construction of the SOA record for 'zone'.  It
- * will provide a SOA listing 'mname' as as the master server and
+ * will provide a SOA listing 'mname' as as the primary server and
  * 'rname' as the responsible person mailbox.  It is the
  * responsibility of the driver to increment the serial number between
  * responses if necessary.  All other SOA fields will have reasonable
index 519521c33cac5caac48a15b10023680bde8374ea..b053080e766e82be53f9af5a9e9d1e9a7dfc8f45 100644 (file)
@@ -1017,7 +1017,7 @@ dns_view_getrootdelonly(dns_view_t *view);
 isc_result_t
 dns_view_freezezones(dns_view_t *view, bool freeze);
 /*%<
- * Freeze/thaw updates to master zones.
+ * Freeze/thaw updates to primary zones.
  *
  * Requires:
  * \li 'view' is valid.
index 10f977cc5a20310bb694dee75c966996f36fc735..5bf5a5e5660cda2b628313bb958adde69dd2631d 100644 (file)
@@ -644,7 +644,7 @@ dns_zone_setprimaries(dns_zone_t *zone, const isc_sockaddr_t *primaries,
                      dns_name_t **keynames, dns_name_t **tlsnames,
                      uint32_t count);
 /*%<
- *     Set the list of master servers for the zone.
+ *     Set the list of primary servers for the zone.
  *
  * Require:
  *\li  'zone' to be a valid zone.
@@ -1456,7 +1456,7 @@ dns_zone_getjournal(dns_zone_t *zone);
 dns_zonetype_t
 dns_zone_gettype(dns_zone_t *zone);
 /*%<
- * Returns the type of the zone (master/slave/etc.)
+ * Returns the type of the zone (primary/secondary/etc.)
  *
  * Requires:
  *\li  'zone' to be valid initialised zone.
@@ -1465,8 +1465,8 @@ dns_zone_gettype(dns_zone_t *zone);
 dns_zonetype_t
 dns_zone_getredirecttype(dns_zone_t *zone);
 /*%<
- * Returns whether the redirect zone is configured as a master or a
- * slave zone.
+ * Returns whether the redirect zone is configured as a primary or a
+ * secondary zone.
  *
  * Requires:
  *\li  'zone' to be valid initialised zone.
@@ -1685,7 +1685,7 @@ isc_result_t
 dns_zone_forwardupdate(dns_zone_t *zone, dns_message_t *msg,
                       dns_updatecallback_t callback, void *callback_arg);
 /*%<
- * Forward 'msg' to each master in turn until we get an answer or we
+ * Forward 'msg' to each primary in turn until we get an answer or we
  * have exhausted the list of primaries. 'callback' will be called with
  * ISC_R_SUCCESS if we get an answer and the returned message will be
  * passed as 'answer_message', otherwise a non ISC_R_SUCCESS result code
@@ -2434,7 +2434,7 @@ dns_zone_isdynamic(dns_zone_t *zone, bool ignore_freeze);
  * master file (if any) is written by the server, rather than being
  * updated manually and read by the server.
  *
- * This is true for slave zones, stub zones, key zones, and zones that
+ * This is true for secondary zones, stub zones, key zones, and zones that
  * allow dynamic updates either by having an update policy ("ssutable")
  * or an "allow-update" ACL with a value other than exactly "{ none; }".
  *
@@ -2583,13 +2583,13 @@ dns_zone_getloadtime(dns_zone_t *zone, isc_time_t *loadtime);
 isc_result_t
 dns_zone_getrefreshtime(dns_zone_t *zone, isc_time_t *refreshtime);
 /*%
- * Return the time when the (slave) zone will need to be refreshed.
+ * Return the time when the (secondary) zone will need to be refreshed.
  */
 
 isc_result_t
 dns_zone_getexpiretime(dns_zone_t *zone, isc_time_t *expiretime);
 /*%
- * Return the time when the (slave) zone will expire.
+ * Return the time when the (secondary) zone will expire.
  */
 
 isc_result_t
index 4a1b2639a8f475d6f5ce99667b81fa42d7499b15..ef451362a7b2598f20a1bb1c9456c18ca7d201a1 100644 (file)
@@ -162,7 +162,7 @@ dns_zt_asyncload(dns_zt_t *zt, bool newonly, dns_zt_allloaded_t alldone,
 isc_result_t
 dns_zt_freezezones(dns_zt_t *zt, dns_view_t *view, bool freeze);
 /*%<
- * Freeze/thaw updates to master zones.
+ * Freeze/thaw updates to primary zones.
  * Any pending updates will be flushed.
  * Zones will be reloaded on thaw.
  */
index e46c0c993e066363f4736b450ca57ff497ff26cd..66a2edeeb7c14d19f296b691c7b0dc3f07692f37 100644 (file)
@@ -559,7 +559,7 @@ redo:
                {
                        /*
                         * This must be the single SOA record that is
-                        * sent when the current version on the master
+                        * sent when the current version on the primary
                         * is not newer than the version in the request.
                         */
                        xfrin_log(xfr, ISC_LOG_DEBUG(3),
index 3da3109aa3d5a0bd5b34837db99b6ae1d7ff1ca2..32b50d47f7f0de504c12373fdb72e4f546d9431b 100644 (file)
@@ -1858,7 +1858,7 @@ dns_zone_getjournal(dns_zone_t *zone) {
  * master file (if any) is written by the server, rather than being
  * updated manually and read by the server.
  *
- * This is true for slave zones, mirror zones, stub zones, key zones,
+ * This is true for secondary zones, mirror zones, stub zones, key zones,
  * and zones that allow dynamic updates either by having an update
  * policy ("ssutable") or an "allow-update" ACL with a value other than
  * exactly "{ none; }".
@@ -2124,8 +2124,8 @@ zone_load(dns_zone_t *zone, unsigned int flags, bool locked) {
        is_dynamic = dns_zone_isdynamic(zone, false);
        if (zone->db != NULL && is_dynamic) {
                /*
-                * This is a slave, stub, or dynamically updated zone being
-                * reloaded.  Do nothing - the database we already
+                * This is a secondary, stub, or dynamically updated zone
+                * being reloaded.  Do nothing - the database we already
                 * have is guaranteed to be up-to-date.
                 */
                if (zone->type == dns_zone_primary && !hasraw) {
@@ -4983,8 +4983,8 @@ zone_postload(dns_zone_t *zone, dns_db_t *db, isc_time_t loadtime,
                      "loaded; checking validity");
 
        /*
-        * Master / Slave / Mirror / Stub zones require both NS and SOA records
-        * at the top of the zone.
+        * Primary / Secondary / Mirror / Stub zones require both NS and SOA
+        * records at the top of the zone.
         */
 
        switch (zone->type) {
@@ -5053,8 +5053,8 @@ zone_postload(dns_zone_t *zone, dns_db_t *db, isc_time_t loadtime,
                        unsigned int oldsoacount;
 
                        /*
-                        * This is checked in zone_replacedb() for slave zones
-                        * as they don't reload from disk.
+                        * This is checked in zone_replacedb() for
+                        * secondary zones as they don't reload from disk.
                         */
                        result = zone_get_from_db(
                                zone, zone->db, NULL, &oldsoacount, NULL,
@@ -11371,7 +11371,7 @@ zone_maintenance(dns_zone_t *zone) {
        }
 
        /*
-        * Master/redirect zones send notifies now, if needed
+        * Primary/redirect zones send notifies now, if needed
         */
        switch (zone->type) {
        case dns_zone_primary:
@@ -12821,7 +12821,7 @@ zone_notify(dns_zone_t *zone, isc_time_t *now) {
        }
 
        /*
-        * Find serial and master server's name.
+        * Find serial and primary server's name.
         */
        dns_name_init(&master, NULL);
        result = dns_rdataset_first(&soardset);
@@ -12940,7 +12940,7 @@ zone_notify(dns_zone_t *zone, isc_time_t *now) {
                RUNTIME_CHECK(result == ISC_R_SUCCESS);
                dns_rdata_reset(&rdata);
                /*
-                * Don't notify the master server unless explicitly
+                * Don't notify the primary server unless explicitly
                 * configured to do so.
                 */
                if (!DNS_ZONE_OPTION(zone, DNS_ZONEOPT_NOTIFYTOSOA) &&
@@ -13072,7 +13072,7 @@ add_opt(dns_message_t *message, uint16_t udpsize, bool reqnsid,
 /*
  * Called when stub zone update is finished.
  * Update zone refresh, retry, expire values accordingly with
- * SOA received from master, sync database to file, restart
+ * SOA received from primary, sync database to file, restart
  * zone management timer.
  */
 static void
@@ -13329,7 +13329,7 @@ cleanup:
 }
 
 /*
- * Create and send an A or AAAA query to the master
+ * Create and send an A or AAAA query to the primary
  * server of the stub zone given.
  */
 static isc_result_t
@@ -13673,7 +13673,7 @@ stub_callback(isc_task_t *task, isc_event_t *event) {
        }
 
        /*
-        * If non-auth log and next master.
+        * If non-auth log and next primary.
         */
        if ((msg->flags & DNS_MESSAGEFLAG_AA) == 0) {
                dns_zone_log(zone, ISC_LOG_INFO,
@@ -13752,7 +13752,7 @@ next_master:
        isc_event_free(&event);
        dns_request_destroy(&zone->request);
        /*
-        * Skip to next failed / untried master.
+        * Skip to next failed / untried primary.
         */
        do {
                zone->curmaster++;
@@ -13952,7 +13952,7 @@ refresh_callback(isc_task_t *task, isc_event_t *event) {
        }
 
        /*
-        * if timeout log and next master;
+        * if timeout log and next primary;
         */
 
        isc_sockaddr_format(&zone->masteraddr, master, sizeof(master));
@@ -14111,7 +14111,7 @@ refresh_callback(isc_task_t *task, isc_event_t *event) {
        }
 
        /*
-        * if non-auth log and next master;
+        * if non-auth log and next primary;
         */
        if ((msg->flags & DNS_MESSAGEFLAG_AA) == 0) {
                dns_zone_log(zone, ISC_LOG_INFO,
@@ -14138,7 +14138,7 @@ refresh_callback(isc_task_t *task, isc_event_t *event) {
        }
 
        /*
-        * if referral log and next master;
+        * if referral log and next primary;
         */
        if (soacnt == 0 && soacount == 0 && nscount != 0) {
                dns_zone_log(zone, ISC_LOG_INFO,
@@ -14149,7 +14149,7 @@ refresh_callback(isc_task_t *task, isc_event_t *event) {
        }
 
        /*
-        * if nodata log and next master;
+        * if nodata log and next primary;
         */
        if (soacnt == 0 && (nscount == 0 || soacount != 0)) {
                dns_zone_log(zone, ISC_LOG_INFO,
@@ -14292,7 +14292,7 @@ next_master:
        isc_event_free(&event);
        dns_request_destroy(&zone->request);
        /*
-        * Skip to next failed / untried master.
+        * Skip to next failed / untried primary.
         */
        do {
                zone->curmaster++;
@@ -14322,7 +14322,7 @@ next_master:
                        DNS_ZONE_SETFLAG(zone, DNS_ZONEFLG_USEALTXFRSRC);
                        zone->curmaster = 0;
                        /*
-                        * Find the next failed master.
+                        * Find the next failed primary.
                         */
                        while (zone->curmaster < zone->masterscnt &&
                               zone->mastersok[zone->curmaster]) {
@@ -14441,7 +14441,7 @@ again:
 
        isc_netaddr_fromsockaddr(&masterip, &zone->masteraddr);
        /*
-        * First, look for a tsig key in the master statement, then
+        * First, look for a tsig key in the primaries statement, then
         * try for a server key.
         */
        if ((zone->masterkeynames != NULL) &&
@@ -14648,7 +14648,7 @@ skip_master:
                dns_message_detach(&message);
        }
        /*
-        * Skip to next failed / untried master.
+        * Skip to next failed / untried primary.
         */
        do {
                zone->curmaster++;
@@ -14771,7 +14771,7 @@ ns_query(dns_zone_t *zone, dns_rdataset_t *soardataset, dns_stub_t *stub) {
 
        isc_netaddr_fromsockaddr(&masterip, &zone->masteraddr);
        /*
-        * First, look for a tsig key in the master statement, then
+        * First, look for a tsig key in the primaries statement, then
         * try for a server key.
         */
        if ((zone->masterkeynames != NULL) &&
@@ -15479,7 +15479,7 @@ dns_zone_notifyreceive(dns_zone_t *zone, isc_sockaddr_t *from,
        }
 
        /*
-        * If we are a master zone just succeed.
+        * If we are a primary zone just succeed.
         */
        if (zone->type == dns_zone_primary) {
                UNLOCK_ZONE(zone);
@@ -15505,7 +15505,7 @@ dns_zone_notifyreceive(dns_zone_t *zone, isc_sockaddr_t *from,
        }
 
        /*
-        * Accept notify requests from non masters if they are on
+        * Accept notify requests from non primaries if they are on
         * 'zone->notify_acl'.
         */
        tsigkey = dns_message_gettsigkey(msg);
@@ -17320,7 +17320,7 @@ zone_replacedb(dns_zone_t *zone, dns_db_t *db, bool dump) {
        dns_db_currentversion(db, &ver);
 
        /*
-        * The initial version of a slave zone is always dumped;
+        * The initial version of a secondary zone is always dumped;
         * subsequent versions may be journaled instead if this
         * is enabled in the configuration.
         */
@@ -17341,7 +17341,7 @@ zone_replacedb(dns_zone_t *zone, dns_db_t *db, bool dump) {
                }
 
                /*
-                * This is checked in zone_postload() for master zones.
+                * This is checked in zone_postload() for primary zones.
                 */
                result = zone_get_from_db(zone, zone->db, NULL, &soacount, NULL,
                                          &oldserial, NULL, NULL, NULL, NULL,
@@ -17668,7 +17668,7 @@ again:
        default:
        next_master:
                /*
-                * Skip to next failed / untried master.
+                * Skip to next failed / untried primary.
                 */
                do {
                        zone->curmaster++;
@@ -18057,7 +18057,7 @@ got_transfer_quota(isc_task_t *task, isc_event_t *event) {
        result = ISC_R_NOTFOUND;
 
        /*
-        * First, look for a tsig key in the master statement, then
+        * First, look for a tsig key in the primaries statement, then
         * try for a server key.
         */
        if ((zone->masterkeynames != NULL) &&
@@ -18206,7 +18206,7 @@ sendtomaster(dns_forward_t *forward) {
         * Always use TCP regardless of whether the original update
         * used TCP.
         * XXX The timeout may but a bit small if we are far down a
-        * transfer graph and the master has to try several masters.
+        * transfer graph and have to try several primaries.
         */
        switch (isc_sockaddr_pf(&forward->addr)) {
        case PF_INET:
@@ -19252,7 +19252,7 @@ zmgr_resume_xfrs(dns_zonemgr_t *zmgr, bool multi) {
                         * Not enough quota.  This is probably the per-server
                         * quota, because we usually get called when a unit of
                         * global quota has just been freed.  Try the next
-                        * zone, it may succeed if it uses another master.
+                        * zone, it may succeed if it uses another primary.
                         */
                        continue;
                } else {
@@ -19318,9 +19318,9 @@ zmgr_start_xfrin_ifquota(dns_zonemgr_t *zmgr, dns_zone_t *zone) {
 
        /*
         * Count the total number of transfers that are in progress,
-        * and the number of transfers in progress from this master.
+        * and the number of transfers in progress from this primary.
         * We linearly scan a list of all transfers; if this turns
-        * out to be too slow, we could hash on the master address.
+        * out to be too slow, we could hash on the primary address.
         */
        nxfrsin = nxfrsperns = 0;
        for (x = ISC_LIST_HEAD(zmgr->xfrin_in_progress); x != NULL;
index 5bcb43df0827b63d10067ed1f6da42bb1b596502..83b53695308f3a36a935f6de41f54e57d24a91fb 100644 (file)
@@ -2076,7 +2076,7 @@ ns__client_request(isc_nmhandle_t *handle, isc_result_t eresult,
                /*
                 * Accept update messages signed by unknown keys so that
                 * update forwarding works transparently through slaves
-                * that don't have all the same keys as the master.
+                * that don't have all the same keys as the primary.
                 */
                if (!(client->message->tsigstatus == dns_tsigerror_badkey &&
                      client->message->opcode == dns_opcode_update))
index 80395d1a77f079acc35976028e94fba7aad14558..58d973404dcadfad22e9c35d4685001439345ade 100644 (file)
@@ -7964,8 +7964,8 @@ cleanup:
 }
 
 /*
- * Set the expire time, if requested, when answering from a slave, mirror, or
- * master zone.
+ * Set the expire time, if requested, when answering from a secondary,
+ * mirror, or primary zone.
  */
 static void
 query_getexpire(query_ctx_t *qctx) {
index 2594fdbe83233efd8e25a68156200b993d6ec75b..5d47525d37325acd4f4ab1028c8f864b3530f264 100644 (file)
@@ -374,16 +374,17 @@ checkqueryacl(ns_client_t *client, dns_acl_t *queryacl, dns_name_t *zonename,
 /*%
  * Override the default acl logging when checking whether a client
  * can update the zone or whether we can forward the request to the
- * master based on IP address.
+ * primary server based on IP address.
  *
  * 'message' contains the type of operation that is being attempted.
- * 'slave' indicates if this is a slave zone.  If 'acl' is NULL then
- * log at debug=3.
+ *
+ * 'secondary' indicates whether this is a secondary zone.
+ *
  * If the zone has no access controls configured ('acl' == NULL &&
- * 'has_ssutable == ISC_FALS) log the attempt at info, otherwise
- * at error.
+ * 'has_ssutable == false`), log the attempt at info, otherwise at error.
+ * If 'secondary' is true, log at debug=3.
  *
- * If the request was signed log that we received it.
+ * If the request was signed, log that we received it.
  */
 static isc_result_t
 checkupdateacl(ns_client_t *client, dns_acl_t *acl, const char *message,
@@ -1668,7 +1669,7 @@ ns_update_start(ns_client_t *client, isc_nmhandle_t *handle,
        case dns_zone_dlz:
                /*
                 * We can now fail due to a bad signature as we now know
-                * that we are the master.
+                * that we are the primary.
                 */
                if (sigresult != ISC_R_SUCCESS) {
                        FAIL(sigresult);
@@ -2905,7 +2906,7 @@ update_action(isc_task_t *task, isc_event_t *event) {
                        unsigned int max = 0;
 
                        /*
-                        * RFC1123 doesn't allow MF and MD in master zones.
+                        * RFC1123 doesn't allow MF and MD in master files.
                         */
                        if (rdata.type == dns_rdatatype_md ||
                            rdata.type == dns_rdatatype_mf) {
@@ -3388,7 +3389,7 @@ update_action(isc_task_t *task, isc_event_t *event) {
                dns_zone_markdirty(zone);
 
                /*
-                * Notify slaves of the change we just made.
+                * Notify secondaries of the change we just made.
                 */
                dns_zone_notify(zone);
 
index 952cd83a69284d5eb93ca3bc069b04e0cdd315a4..995ac5bab89d169961f73d5cf2f3ea24f79e6e31 100644 (file)
@@ -839,7 +839,7 @@ ns_xfr_start(ns_client_t *client, dns_rdatatype_t reqtype) {
                /* zone table has a match */
                switch (dns_zone_gettype(zone)) {
                /*
-                * Master, slave, and mirror zones are OK for transfer.
+                * Primary, secondary, and mirror zones are OK for transfer.
                 */
                case dns_zone_primary:
                case dns_zone_secondary:
@@ -1453,7 +1453,7 @@ sendstream(xfrout_ctx_t *xfr) {
                         * when compressed even if they do not fit when
                         * uncompressed, but surely we don't want
                         * to send such monstrosities to an unsuspecting
-                        * slave.
+                        * secondary.
                         */
                        if (n_rrs == 0) {
                                xfrout_log(xfr, ISC_LOG_WARNING,