rndc addzone, global allow-new-zones, 'file not found'

Mark Andrews marka at isc.org
Wed Dec 11 11:01:02 UTC 2013


In message <20131211110257.60d3bb74 at loki>, Tobias Wolter writes:
>
> Hello there,
>
> I'm currently experiencing a bit of a problem with the experimental
> addzone stuff. I'm on 9.9.3-P2.
>
> I've set allow-new-zones to yes in options, and toggled
> permit-empty-zones around to no avail.
>
> My problem is that a simple addzone fails by either complaining that
> the file parameter is lacking (when not specifying one), or not being
> able to access the file (if specified):
>
> # rndc -s localhost -c ~/rndc-localhost.conf addzone metazone. '{type
> master;};'; tail /var/log/messages -n 2
> rndc: 'addzone' failed: failure
> Dec 11 10:00:31 <hostname> named[21120]: received control channel command
> 'addzone metazone. {type master;};'
> Dec 11 10:00:31 <hostname> named[21120]: zone 'metazone.': 'file' not
> specified
>
> # rndc -s localhost -c ~/rndc-localhost.conf addzone metazone. '{type
> master; file "master/metazone.zone";};'; tail /var/log/messages -n 4
> rndc: 'addzone' failed: file not found
> Dec 11 10:01:15 <hostname> named[21120]: received control channel command
> 'addzone metazone. {type master; file "master/metazone.zone";};'
> Dec 11 10:01:15 <hostname> named[21120]: zone metazone/IN: loading from
> master file master/metazone.zone failed: file not found
> Dec 11 10:01:15 <hostname> named[21120]: zone metazone/IN: not loaded due
> to errors.
> Dec 11 10:01:15 <hostname> named[21120]: addzone failed; reverting.
>
> From my understanding, though, the relevant configuration options should
> allow creating new zones on the fly?
>
> Any hints? (I'm a bit wary of wading through the code.)

Yes,
     create the initial zone contents and put it in master/metazone.zone.

Mark
 
> -towo
> 
-- 
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: marka at isc.org


More information about the bind-users mailing list