From eb1b29b19ecf5b0bfb2e2b9dc56972d5f015859e Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Fri, 11 Dec 2020 14:07:31 +1100 Subject: [PATCH] Update dnssec-signzone -N soa-serial-format description document the autoincrement when the serial would go backwards. --- bin/dnssec/dnssec-signzone.rst | 10 ++++++++-- doc/man/dnssec-signzone.1in | 10 ++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/bin/dnssec/dnssec-signzone.rst b/bin/dnssec/dnssec-signzone.rst index 1abebd6713..3eef88d93b 100644 --- a/bin/dnssec/dnssec-signzone.rst +++ b/bin/dnssec/dnssec-signzone.rst @@ -202,10 +202,16 @@ Options This format increments the SOA serial number using :rfc:`1982` arithmetic. **unixtime** - This format sets the SOA serial number to the number of seconds since the beginning of the Unix epoch. + This format sets the SOA serial number to the number of seconds + since the beginning of the Unix epoch, unless the serial + number is already greater than or equal to that value, in + which case it is simply incremented by one. **date** - This format sets the SOA serial number to today's date, in YYYYMMDDNN format. + This format sets the SOA serial number to today's date, in + YYYYMMDDNN format, unless the serial number is already greater + than or equal to that value, in which case it is simply + incremented by one. ``-o origin`` This option sets the zone origin. If not specified, the name of the zone file is diff --git a/doc/man/dnssec-signzone.1in b/doc/man/dnssec-signzone.1in index 930c1137e7..c41769937c 100644 --- a/doc/man/dnssec-signzone.1in +++ b/doc/man/dnssec-signzone.1in @@ -203,10 +203,16 @@ This format indicates that the SOA serial number should not be modified. This format increments the SOA serial number using \fI\%RFC 1982\fP arithmetic. .TP \fBunixtime\fP -This format sets the SOA serial number to the number of seconds since the beginning of the Unix epoch. +This format sets the SOA serial number to the number of seconds +since the beginning of the Unix epoch, unless the serial +number is already greater than or equal to that value, in +which case it is simply incremented by one. .TP \fBdate\fP -This format sets the SOA serial number to today\(aqs date, in YYYYMMDDNN format. +This format sets the SOA serial number to today\(aqs date, in +YYYYMMDDNN format, unless the serial number is already greater +than or equal to that value, in which case it is simply +incremented by one. .UNINDENT .TP .B \fB\-o origin\fP