DNSZCOMP
/?
domain
source
compiled
DNSZCOMP is a utility that compiles a database source file into a compile form suitable for use by General-purpose Content DNS Server. DNSZCOMP compiles a single "zone" of the database, whose apex is domain.
DNSZCOMP is designed to be capable of updating a live database, that the Content DNS Server is actively using at the time. It guarantees atomicity, in respect of what DNS data are served. Either the whole database will be updated, and the content DNS server will start serving new data, or none of the update will be effective, and the content DNS server will remain serving the data that it had been serving before. At no point will the content DNS server serve an admixture of old and new data.
The input to DNSZCOMP is the file named source which is a DNS database source file. The output of DNSZCOMP is the file named compiled which is a compiled database. (The structure of compiled databases is not publicly documented, and is liable to change.)
If the data compile successfully and the database file can be completely updated, DNSZCOMP exits with a zero code. Otherwise it exits with a non-zero code.
Ensuring that a database is up-to-date whenever source changes are made is
a simple matter of running a tool such as make on a regular
basis, using a Makefile similar to the following example:
data/@example.com: source/example.com dnszcomp example.com source/example.com $@