2019-03-31 12:49:47 +02:00
|
|
|
.\" Man page generated from reStructuredText.
|
|
|
|
.
|
|
|
|
.
|
|
|
|
.nr rst2man-indent-level 0
|
|
|
|
.
|
|
|
|
.de1 rstReportMargin
|
|
|
|
\\$1 \\n[an-margin]
|
|
|
|
level \\n[rst2man-indent-level]
|
|
|
|
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
|
|
|
|
-
|
|
|
|
\\n[rst2man-indent0]
|
|
|
|
\\n[rst2man-indent1]
|
|
|
|
\\n[rst2man-indent2]
|
|
|
|
..
|
|
|
|
.de1 INDENT
|
|
|
|
.\" .rstReportMargin pre:
|
|
|
|
. RS \\$1
|
|
|
|
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
|
|
|
|
. nr rst2man-indent-level +1
|
|
|
|
.\" .rstReportMargin post:
|
|
|
|
..
|
|
|
|
.de UNINDENT
|
|
|
|
. RE
|
|
|
|
.\" indent \\n[an-margin]
|
|
|
|
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
|
|
|
|
.nr rst2man-indent-level -1
|
|
|
|
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
|
|
|
|
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
|
|
|
|
..
|
2021-09-16 10:57:04 +02:00
|
|
|
.TH "NAMED-JOURNALPRINT" "1" "@RELEASE_DATE@" "@PACKAGE_VERSION@" "BIND 9"
|
|
|
|
.SH NAME
|
|
|
|
named-journalprint \- print zone journal in human-readable form
|
2019-03-31 12:49:47 +02:00
|
|
|
.SH SYNOPSIS
|
|
|
|
.sp
|
2021-05-04 17:20:26 +10:00
|
|
|
\fBnamed\-journalprint\fP [\-c serial] [\fB\-dux\fP] {journal}
|
2019-03-31 12:49:47 +02:00
|
|
|
.SH DESCRIPTION
|
|
|
|
.sp
|
2021-03-03 17:07:15 +11:00
|
|
|
\fBnamed\-journalprint\fP scans the contents of a zone journal file,
|
|
|
|
printing it in a human\-readable form, or, optionally, converting it
|
|
|
|
to a different journal file format.
|
2019-03-31 12:49:47 +02:00
|
|
|
.sp
|
2022-04-22 13:05:10 +02:00
|
|
|
Journal files are automatically created by \fI\%named\fP when changes are
|
|
|
|
made to dynamic zones (e.g., by \fI\%nsupdate\fP). They record each addition
|
2019-03-31 12:49:47 +02:00
|
|
|
or deletion of a resource record, in binary format, allowing the changes
|
|
|
|
to be re\-applied to the zone when the server is restarted after a
|
|
|
|
shutdown or crash. By default, the name of the journal file is formed by
|
|
|
|
appending the extension \fB\&.jnl\fP to the name of the corresponding zone
|
|
|
|
file.
|
|
|
|
.sp
|
|
|
|
\fBnamed\-journalprint\fP converts the contents of a given journal file
|
2020-07-02 10:53:16 +02:00
|
|
|
into a human\-readable text format. Each line begins with \fBadd\fP or \fBdel\fP,
|
2019-03-31 12:49:47 +02:00
|
|
|
to indicate whether the record was added or deleted, and continues with
|
|
|
|
the resource record in master\-file format.
|
allow dns_journal_rollforward() to read old journal files
when the 'max-ixfr-ratio' option was added, journal transaction
headers were revised to include a count of RR's in each transaction.
this made it impossible to read old journal files after an upgrade.
this branch restores the ability to read version 1 transaction
headers. when rolling forward, printing journal contents, if
the wrong transaction header format is found, we can switch.
when dns_journal_rollforward() detects a version 1 transaction
header, it returns DNS_R_RECOVERABLE. this triggers zone_postload()
to force a rewrite of the journal file in the new format, and
also to schedule a dump of the zone database with minimal delay.
journal repair is done by dns_journal_compact(), which rewrites
the entire journal, ignoring 'max-journal-size'. journal size is
corrected later.
newly created journal files now have "BIND LOG V9.2" in their headers
instead of "BIND LOG V9". files with the new version string cannot be
read using the old transaction header format. note that this means
newly created journal files will be rejected by older versions of named.
named-journalprint now takes a "-x" option, causing it to print
transaction header information before each delta, including its
format version.
2021-02-19 15:04:50 -08:00
|
|
|
.sp
|
2021-05-04 17:22:56 +10:00
|
|
|
The \fB\-c\fP (compact) option provides a mechanism to reduce the size of
|
|
|
|
a journal by removing (most/all) transactions prior to the specified
|
2022-04-22 13:05:10 +02:00
|
|
|
serial number. Note: this option \fImust not\fP be used while \fI\%named\fP is
|
2021-05-04 17:22:56 +10:00
|
|
|
running, and can cause data loss if the zone file has not been updated
|
|
|
|
to contain the data being removed from the journal. Use with extreme caution.
|
2021-05-04 17:20:26 +10:00
|
|
|
.sp
|
2021-03-03 17:07:15 +11:00
|
|
|
The \fB\-x\fP option causes additional data about the journal file to be
|
|
|
|
printed at the beginning of the output and before each group of changes.
|
|
|
|
.sp
|
|
|
|
The \fB\-u\fP (upgrade) and \fB\-d\fP (downgrade) options recreate the journal
|
|
|
|
file with a modified format version. The existing journal file is
|
|
|
|
replaced. \fB\-d\fP writes out the journal in the format used by
|
|
|
|
versions of BIND up to 9.16.11; \fB\-u\fP writes it out in the format used
|
|
|
|
by versions since 9.16.13. (9.16.12 is omitted due to a journal\-formatting
|
|
|
|
bug in that release.) Note that these options \fImust not\fP be used while
|
2022-04-22 13:05:10 +02:00
|
|
|
\fI\%named\fP is running.
|
2019-03-31 12:49:47 +02:00
|
|
|
.SH SEE ALSO
|
|
|
|
.sp
|
2022-04-22 13:05:10 +02:00
|
|
|
\fI\%named(8)\fP, \fI\%nsupdate(1)\fP, BIND 9 Administrator Reference Manual.
|
2019-03-31 12:49:47 +02:00
|
|
|
.SH AUTHOR
|
|
|
|
Internet Systems Consortium
|
|
|
|
.SH COPYRIGHT
|
2022-01-03 10:29:49 +01:00
|
|
|
2022, Internet Systems Consortium
|
2019-03-31 12:49:47 +02:00
|
|
|
.\" Generated by docutils manpage writer.
|
|
|
|
.
|