Home | History | Annotate | Line # | Download | only in tools
      1 .. Copyright (C) Internet Systems Consortium, Inc. ("ISC")
      2 ..
      3 .. SPDX-License-Identifier: MPL-2.0
      4 ..
      5 .. This Source Code Form is subject to the terms of the Mozilla Public
      6 .. License, v. 2.0.  If a copy of the MPL was not distributed with this
      7 .. file, you can obtain one at https://mozilla.org/MPL/2.0/.
      8 ..
      9 .. See the COPYRIGHT file distributed with this work for additional
     10 .. information regarding copyright ownership.
     11 
     12 .. highlight: console
     13 
     14 .. iscman:: named-journalprint
     15 .. program:: named-journalprint
     16 .. _man_named-journalprint:
     17 
     18 named-journalprint - print zone journal in human-readable form
     19 --------------------------------------------------------------
     20 
     21 Synopsis
     22 ~~~~~~~~
     23 
     24 :program:`named-journalprint` [-c serial] [**-dux**] {journal}
     25 
     26 Description
     27 ~~~~~~~~~~~
     28 
     29 :program:`named-journalprint` scans the contents of a zone journal file,
     30 printing it in a human-readable form, or, optionally, converting it
     31 to a different journal file format.
     32 
     33 Journal files are automatically created by :iscman:`named` when changes are
     34 made to dynamic zones (e.g., by :iscman:`nsupdate`). They record each addition
     35 or deletion of a resource record, in binary format, allowing the changes
     36 to be re-applied to the zone when the server is restarted after a
     37 shutdown or crash. By default, the name of the journal file is formed by
     38 appending the extension ``.jnl`` to the name of the corresponding zone
     39 file.
     40 
     41 :program:`named-journalprint` converts the contents of a given journal file
     42 into a human-readable text format. Each line begins with ``add`` or ``del``,
     43 to indicate whether the record was added or deleted, and continues with
     44 the resource record in master-file format.
     45 
     46 The ``-c`` (compact) option provides a mechanism to reduce the size of
     47 a journal by removing (most/all) transactions prior to the specified
     48 serial number. Note: this option *must not* be used while :iscman:`named` is
     49 running, and can cause data loss if the zone file has not been updated
     50 to contain the data being removed from the journal. Use with extreme caution.
     51 
     52 The ``-x`` option causes additional data about the journal file to be
     53 printed at the beginning of the output and before each group of changes.
     54 
     55 The ``-u`` (upgrade) and ``-d`` (downgrade) options recreate the journal
     56 file with a modified format version.  The existing journal file is
     57 replaced.  ``-d`` writes out the journal in the format used by
     58 versions of BIND up to 9.16.11; ``-u`` writes it out in the format used
     59 by versions since 9.16.13. (9.16.12 is omitted due to a journal-formatting
     60 bug in that release.) Note that these options *must not* be used while
     61 :iscman:`named` is running.
     62 
     63 See Also
     64 ~~~~~~~~
     65 
     66 :iscman:`named(8) <named>`, :iscman:`nsupdate(1) <nsupdate>`, BIND 9 Administrator Reference Manual.
     67