mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
Print warning when falling back to increment soa serial method
When using the `unixtime` or `date` method to update the SOA serial, `named` and `dnssec-signzone` would silently fallback to `increment` method to prevent the new serial number to be smaller than the old serial number (using the serial number arithmetics). Add a warning message when such fallback happens.
This commit is contained in:
@@ -1486,7 +1486,7 @@ update_soa_serial(dns_db_t *db, dns_dbversion_t *ver, dns_diff_t *diff,
|
||||
addtuple->op = DNS_DIFFOP_ADD;
|
||||
|
||||
serial = dns_soa_getserial(&addtuple->rdata);
|
||||
serial = dns_update_soaserial(serial, method);
|
||||
serial = dns_update_soaserial(serial, method, NULL);
|
||||
dns_soa_setserial(serial, &addtuple->rdata);
|
||||
CHECK(do_one_tuple(&deltuple, db, ver, diff));
|
||||
CHECK(do_one_tuple(&addtuple, db, ver, diff));
|
||||
|
Reference in New Issue
Block a user