"KEYFRLAB": f"{BUILD_VARS['TOP_BUILDDIR']}/dnssec-keyfromlabel",
"KEYGEN": f"{BUILD_VARS['TOP_BUILDDIR']}/dnssec-keygen",
"KSR": f"{BUILD_VARS['TOP_BUILDDIR']}/dnssec-ksr",
+ "MAKEJOURNAL": f"{BUILD_VARS['TOP_BUILDDIR']}/named-makejournal",
"MDIG": f"{BUILD_VARS['TOP_BUILDDIR']}/mdig",
"NAMED": f"{BUILD_VARS['TOP_BUILDDIR']}/named",
"NSEC3HASH": f"{BUILD_VARS['TOP_BUILDDIR']}/nsec3hash",
"WIRETEST": f"{BUILD_VARS['TOP_BUILDDIR']}/wire-test",
"BIGKEY": f"{BUILD_VARS['TOP_BUILDDIR']}/bigkey",
"GENCHECK": f"{BUILD_VARS['TOP_BUILDDIR']}/gencheck",
- "MAKEJOURNAL": f"{BUILD_VARS['TOP_BUILDDIR']}/makejournal",
"PIPEQUERIES": f"{BUILD_VARS['TOP_BUILDDIR']}/pipequeries",
"TMPDIR": os.getenv("TMPDIR", "/tmp"),
"KRB5_CONFIG": "/dev/null", # we don't want a KRB5_CONFIG setting breaking the tests
# 'bigkey': files('rsabigexponent' / 'bigkey.c'),
'feature-test': files('feature-test.c'),
'gencheck': files('rndc' / 'gencheck.c'),
- 'makejournal': files('makejournal.c'),
'pipequeries': files('pipelined' / 'pipequeries.c'),
'wire-test': files('wire-test.c'),
}
arpaname_src += files('arpaname.c')
dnstap_read_src += files('dnstap-read.c')
mdig_src += files('mdig.c')
+named_makejournal_src += files('named-makejournal.c')
named_journalprint_src += files('named-journalprint.c')
named_nzd2nzf_src += files('named-nzd2nzf.c')
named_rrchecker_src += files('named-rrchecker.c')
'dnstap-read.rst',
'mdig.rst',
'named-journalprint.rst',
+ 'named-makejournal.rst',
'named-nzd2nzf.rst',
'named-rrchecker.rst',
'nsec3hash.rst',
See Also
~~~~~~~~
-:iscman:`named(8) <named>`, :iscman:`nsupdate(1) <nsupdate>`, BIND 9 Administrator Reference Manual.
+:iscman:`named(8) <named>`, :iscman:`nsupdate(1) <nsupdate>`, :iscman:`named-makejournal(1) <named-makejournal>`, BIND 9 Administrator Reference Manual.
loadzone(dns_db_t **db, const char *origin, const char *filename) {
isc_result_t result;
dns_fixedname_t fixed;
- dns_name_t *name;
+ dns_name_t *name = NULL;
name = dns_fixedname_initname(&fixed);
int
main(int argc, char **argv) {
isc_result_t result;
- char *origin, *file1, *file2, *journal;
+ char *origin = NULL, *file1 = NULL, *file2 = NULL, *journal = NULL;
dns_db_t *olddb = NULL, *newdb = NULL;
isc_logconfig_t *logconfig = NULL;
--- /dev/null
+.. Copyright (C) Internet Systems Consortium, Inc. ("ISC")
+..
+.. SPDX-License-Identifier: MPL-2.0
+..
+.. This Source Code Form is subject to the terms of the Mozilla Public
+.. License, v. 2.0. If a copy of the MPL was not distributed with this
+.. file, you can obtain one at https://mozilla.org/MPL/2.0/.
+..
+.. See the COPYRIGHT file distributed with this work for additional
+.. information regarding copyright ownership.
+
+.. highlight: console
+
+.. iscman:: named-makejournal
+.. program:: named-makejournal
+.. _man_named-makejournal:
+
+named-makejournal - create a journal from zone files
+----------------------------------------------------
+
+Synopsis
+~~~~~~~~
+
+:program:`named-makejournal` {origin} {oldfile} {newfile} {journal}
+
+Description
+~~~~~~~~~~~
+
+:program:`named-makejournal` scans the contents of two zone files for
+the same domain, compares them, and writes the differences into a
+journal file. The resulting journal file could then be used by a
+:iscman:`named` server to load the zone and provide incremental
+zone transfers.
+
+See Also
+~~~~~~~~
+
+:iscman:`named(8) <named>`, :iscman:`named-journalprint(1) <named-journalprint>`, BIND 9 Administrator Reference Manual.
.. include:: ../../bin/check/named-checkzone.rst
.. include:: ../../bin/check/named-compilezone.rst
.. include:: ../../bin/tools/named-journalprint.rst
+.. include:: ../../bin/tools/named-makejournal.rst
.. include:: ../../bin/tools/named-nzd2nzf.rst
.. include:: ../../bin/tools/named-rrchecker.rst
.. include:: ../../bin/named/named.conf.rst
* `bind9/bin/confgen`: `rndc-confgen`, `ddns-confgen`, and
`tsig-keygen` (BIND 9.9+)
* `bind9/bin/tools`: assorted useful tools: `named-journalprint`,
- `nsec3hash`, etc
+ `named-makejournal`, `nsec3hash`, etc
* `bind9/lib`: libraries
* `bind9/lib/isc`: implements basic functionality such as threads,
tasks, timers, sockets, memory manager, buffers, and basic data types.
author,
1,
),
+ (
+ "named-makejournal",
+ "named-makejournal",
+ "create a journal from zone files",
+ author,
+ 1,
+ ),
(
"named-nzd2nzf",
"named-nzd2nzf",
--- /dev/null
+.. Copyright (C) Internet Systems Consortium, Inc. ("ISC")
+..
+.. SPDX-License-Identifier: MPL-2.0
+..
+.. This Source Code Form is subject to the terms of the Mozilla Public
+.. License, v. 2.0. If a copy of the MPL was not distributed with this
+.. file, you can obtain one at https://mozilla.org/MPL/2.0/.
+..
+.. See the COPYRIGHT file distributed with this work for additional
+.. information regarding copyright ownership.
+
+:orphan:
+
+.. include:: ../../bin/tools/named-makejournal.rst
named_checkconf_src = []
named_checkzone_src = []
named_journalprint_src = []
+named_makejournal_src = []
named_nzd2nzf_src = []
named_rrchecker_src = []
nsec3hash_src = []
],
)
+executable(
+ 'named-makejournal',
+ named_makejournal_src,
+ export_dynamic: true,
+ implicit_include_directories: false,
+ install: true,
+ install_rpath: libdir,
+ dependencies: [
+ libdns_dep,
+ libisc_dep,
+ ],
+)
+
if config.has('HAVE_LMDB')
executable(
'named-nzd2nzf',