This tool has a more performant alternative written in Rust. The new tool is an order of magnitude faster, which is significant for larger datasets. It is not as feature-complete as the Python version, but it should work for most use cases. See https://gitlab.nic.cz/knot/respdiff-rs.
$ ./msgdiff.py "${DIR}" # basic example
$ ./msgdiff.py --help # for more info
Gathered answers can be compared using the msgdiff.py
tool.
which reads configuration from config file section [diff]
.
The tool refers to one server as target
(configured in [diff]
section) and to remaining servers as others
. Msgdiff compares specified
criteria
and stores results in the LMDB and the JSON datafile.
The created JSON datafile contains the information about the mismatches. This datafile is necessary for other tools in the respdiff toolchain. The format of this file is subject to change and backwards compatibility is not guaranteed.
- Performance of
msgdiff.py
can be slightly boosted by compilingdnspython
with CPython. - If you change the
criteria
, you can re-runmsgdiff.py
and the rest of the toolchain on the same LMDB without gathering the answers again.