Dynamically add zones

Alan Clegg aclegg at isc.org
Fri Jul 30 00:23:23 UTC 2010


On 7/29/2010 7:19 PM, Dan Durrer wrote:
> Alan,
> 
> I was playing around with your example.  I can get it to add the zone
> ( that is no rndc errors or syslog messages).
> 
> I see it send notifies for the new zone in my log.
> 
> 29-Jul-2010 23:06:47.063 notify: info: zone exampledomain.com/IN:
> sending notifies (serial 12)
> 
> I also added the global option  new-zone-file "my_new_zones.dat" and
> I see that file being populated with the new zones statements I've
> added via rndc.
> 
> The server however responds with a REFUSED for this zone or any
> others done via addzone.
> 
> If i take the zone option statement in my_new_zones.dat and apply
> them to named.conf and reconfig it resolves just fine.  Anyone else
> experiencing this?

"include" the my_new_zones.dat into your named.conf... my entire
named.conf on the sample system reads:

====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====

Note that the syntax for this set of tools (dynamic zone creation) is a
bit in flux and may be completely changed between 9.7.2 and 9.7.3. The
functionality will be there, but it might be a bit different in
implementation.. (beware!)

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/1f698185/attachment.bin>


More information about the bind-users mailing list