check-zones: script to check zone syntax at make

The script is intented to run always when Makefile is executed.
This should prevent obvious mistakes to become part of DNS data.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
nsconfig: fix indentation

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
dnslib.m4: fix typo in rndc command name

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
mkmf.m4: add zone check functionality

Add default zone integerity check to Makefile.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
mkmf.m4: add build target for nsconfig

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
custom.m4: add placeholder for installation specific macros

This is intentionally empty file, to which hostmaster can add
macros which are installation specific.  An example of such is a
macro generating zone with default content.

define(DEFAULT_ZONE, `SOA($1)
NS(NSNAME)
DADDR(10.20.30.40)
TXT(v=spf1 -all)
H(www)
DADDR(10.30.40.20)')

Which can be used the follow way.

$ cat cf/example.com
DEFAULT_ZONE(example.com)

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
dnslib.m4: add version control status check

The cf/ directory contents are expected to be version controlled.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
root.cache: update from k.root-server.net.

$ dig +nostat +nocomments +nocmd +noquestion NS . @k.root-servers.net. > root.cache

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
custom.conf: add place holder for bind configuration

The custom.conf is a file for installation specific bind
configuration.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
README: add information about new facilities

* custom.conf
* m4/custom.m4
* bin/check-cf-changes
* bin/check-zone

Signed-off-by: Sami Kerola <kerolasa@iki.fi>