Dynamically add zones
Alan Clegg
aclegg at isc.org
Fri Jul 30 00:31:05 UTC 2010
On 7/29/2010 8:23 PM, Alan Clegg wrote:
> ====SNIP====
> options {
> directory "/etc/namedb";
> dnssec-enable yes;
> dnssec-validation yes;
> new-zone-file "/etc/namedb/managed.zone.list";
> key-directory "/etc/namedb/keys";
> };
>
> include "/etc/namedb/zone.list";
> ====SNIP====
oops...
note that "managed.zone.list" above should be "zone.list" (to match the
include statement).
And don't forget that you can also do things like:
==SNIP==
#!/bin/bash
rndc addzone ${1} { type slave\;\
file \"slave/${1}\"\;\
masters { 192.153.154.127\; }\; \
}\;
rndc retransfer ${1}
==SNIP==
(and could even do the above with "rndc -s remotehost" if you had it
configured)
AlanC
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <https://lists.isc.org/pipermail/bind-users/attachments/20100729/6c843d1e/attachment.bin>
More information about the bind-users
mailing list