Node Director
dnszone Template
Domain Templates

SYNOPSIS

Template ......... DNS Zone [dnszone]
Domain ........... yourdomain.example
Default Domain ... yourdomain.example
Zone File ........ /etc/bind/yourdomain.example.zone
Restrict to one class . on
Host class ....... Server

DESCRIPTION

The "DNS Zone" domain template allows writing host information out into a ISC Bind (www.isc.org) compatible zone file. In order to set up a DNS Zone you have to create a skeleton zone file, first, e.g. something like this:

$TTL 3600
@ IN SOA ns1.yourdomain.example. yourname.yourdomain.example. (
1 ; ##serial - this will be auto-updated by the Director
3600 ; Refresh
300 ; Retry
3600000 ; Expire
100000 ) ; Minimum
IN TXT "v=spf1 ptr ip4:1.2.3.4/24 ip4:192.168.0.0/16 -all"
IN NS ns1.yourdomain.example.
IN NS ns2.yourdomain.example.
IN MX 5 mailhost
somename IN A 1.2.3.4
;##BEGIN director maintained section
; This section will be replaced by the Director
;##END director maintained section

The serial number will be incremented by the Director when necessary, all other information outside of the marked section (##BEGIN ... ##END) will be left untouched. There, you can manually maintain DNS records.

Now, you have to point your BIND server to the just created zone file. Make an entry in named.conf like i.e.:

zone "yourdomain.example" {
type master; // what used to be called "primary"
file "/etc/bind/yourdomain.zone";
};

Re-start your BIND server and watch the log messages - the zone should load ok.

Now setup your DNS Zone in the Director.

Note
Reverse domains are set up in the same manner.

OPTIONS

The template understands the following configuration options:

Domain (Domain)

Only entries in this domain are emitted into the zone file. Reverse domains (i.e. 68.192.in-addr.arpa) are allowed.

Default Domain (DefaultDomain)

Each host name that has no associated DNS domain is assumed to be part of the "Default Domain".

Zone File (ZoneFile)

The file name and path of the zone file to be updated.

Restrict to one class (ClassOnly)

If set, then only hosts that are in the appropriate class will be included.

Host class (SelectClass)

Only effective if "Restrict to one class" is set. It then specifies the host class.

Reload Command (ReloadCommand)

The shell command to be executed on the target server after a zone file has be updated. If empty, some more or less generic default is being used.