ldns-compare-zones(1) | General Commands Manual | ldns-compare-zones(1) |
ldns-compare-zones - read and compare two zonefiles and print differences
ldns-compare-zones [-c] [-U] [-u] [-i] [-d] [-z] [-s] ZONEFILE1 ZONEFILE2
ldns-compare-zones reads two DNS zone files and prints number of differences.
Output is formatted to:
+NUM_INS -NUM_DEL ~NUM_CHG Except with the -U or -u option. Then the output is formatted to:
+NUM_INS -NUM_DEL ~NUM_CHG =NUM_EQ
The major comparison is based on the owner name. If an owner name is present in zonefile 1, but not in zonefile 2, the resource records with this owner name are considered deleted, and counted as NUM_DEL. If an owner name is present in zonefile 2, but not in zonefile 1, the resource records with this owner name are considered inserted, and counted as NUM_INS. If an owner name is present in both, but there is a difference in the amount or content of the records, these are considered changed, and counted as NUM_CHG.
Written by Ondřej Surý <ondrej@sury.org> for CZ.NIC, z.s.p.o. (czech domain registry)
Report bugs to <ondrej@sury.org>.
Copyright (C) 2005 CZ.NIC, z.s.p.o.. This is free software. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17 Oct 2007 |