1ldns-compare-zones(1)       General Commands Manual      ldns-compare-zones(1)
2
3
4

NAME

6       ldns-compare-zones  -  read and compare two zonefiles and print differ‐
7       ences
8

SYNOPSIS

10       ldns-compare-zones [-c] [-i] [-d] [-z] [-s] ZONEFILE1 ZONEFILE2
11

DESCRIPTION

13       ldns-compare-zones reads two DNS zone files and prints number  of  dif‐
14       ferences.
15       Output is formated to:
16               +NUM_INS        -NUM_DEL        ~NUM_CHG
17
18       The  major  comparison  is based on the owner name. If an owner name is
19       present in zonefile 1, but not in zonefile 2, the resource records with
20       this  owner  name are considered deleted, and counted as NUM_DEL. If an
21       owner name is present in  zonefile  2,  but  not  in  zonefile  1,  the
22       resource  records  with  this  owner  name are considered inserted, and
23       counted as NUM_INS. If an owner name is present in both, but there is a
24       difference  in  the amount or content of the records, these are consid‐
25       ered changed, and counted as NUM_CHG.
26

OPTIONS

28       -c     Print resource records whose owner names are in both zone files,
29              but with different resource records. (a.k.a. changed)
30
31       -i     Print  resource  records  whose  owner names are present only in
32              ZONEFILE2 (a.k.a. inserted)
33
34       -d     Print resource records whose owner names  are  present  only  in
35              ZONEFILE1 (a.k.a. deleted)
36
37       -a     Print  all changes. Specifying this option is the same as speci‐
38              fying -c -i amd -d.
39
40       -z     Suppress zone sorting; this option is not  recommended;  it  can
41              cause  records to be incorrectly marked as changed, depending of
42              the nature of the changes.
43
44       -s     Do not exclude the SOA record  from  the  comparison.   The  SOA
45              record  may  then show up as changed due to a new serial number.
46              Off by default since you may be interested  to  know  if  (other
47              zone apex elements) have changed.
48
49       -e     Exit with status code 2 when zones differ.
50
51       -h     Show usage and exit
52
53       -v     Show the version and exit
54

AUTHOR

56       Written  by  Ondřej  Surý <ondrej@sury.org> for CZ.NIC, z.s.p.o. (czech
57       domain registry)
58

REPORTING BUGS

60       Report bugs to <ondrej@sury.org>.
61
63       Copyright (C) 2005 CZ.NIC, z.s.p.o.. This is free software. There is NO
64       warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PUR‐
65       POSE.
66
67
68
69                                  17 Oct 2007            ldns-compare-zones(1)
Impressum