NSSYNC |
|
DNS Zone Files Maintenance Utility |
Sergey Poznyakoff |
4.1 General Settings
These settings modify the behavior of nssync
as a whole.
- Configuration: pidfile file
At startup, check if file already exists and is owned by an existing process. Exit if so. Use this statement to avoid accidentally running two copies of
nssync
simultaneously.
- Configuration: tempdir dir
Sets the name for the temporary directory. This is a directory where
nssync
creates temporary zone files. The argument must point to an existing directory.
- Configuration: check-ns bool
If set to
true
,nssync
will check the list of NS servers prior to creating a zone file. The file will be created only if IPv4 address of one of the servers matches one of the IP addresses of the host on whichnssync
is run.
- Configuration: named-conf file
Defines the full pathname of the
named
configuration file. Default is /etc/named.conf.
- Configuration: bind-include-path list
Sets include search path for
include
directives found in BIND configuration. The argument is either a single directory or a list of directories (see list).
- Configuration: zonefile-pattern pat
Defines the pattern for zone file names. The name of each zone file is created by expanding variable references in the pat argument. The following variable references are defined:
- $zone
- ${zone}
Name of the zone, without the trailing dot.
- $synctag
- ${synctag}
Zone synchronization tag (see Synchronization Block).
Both notations (with and without braces) are equivalent. The notation with curly braces should be used if the reference is immediately followed by a letter.
The default zone file pattern is ‘$zone.$synctag’.
- Configuration: zone-conf pat
Defines the pattern for zone configuration file, i.e. a file containing
zone
statements.The handling of pat is similar to that in
zonefile-pattern
, except that only the ‘$synctag’ reference is defined.
- Configuration: compare-command cmd
Defines a command to be used for comparing two zone files. The cmd must be a command taking two files as its arguments and returning 0 if they are the same or non-zero if they differ.
Nssync
uses this command to determine whether a particular zone has changed. The following variable references are expanded in cmd:- $oldfile
- ${oldfile}
Old zone file.
- $newfile
- ${newfile}
New zone file.
The default
compare-command
value is:cmp $oldfile $newfile > /dev/null
- Configuration: reload-command cmd
Defines a command to reload the nameserver. The default is ‘/usr/sbin/rndc reload’.
This document was generated on April 24, 2015 using makeinfo.
Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.