rndc addzone for subnetted reverse zones
Mark Andrews
marka at isc.org
Thu Apr 9 22:05:37 UTC 2015
This is a bug. A ticket has been opened.
In message <43642AC5-FADD-46EB-9658-45044963AA16 at sonic.net>, Charles Musser wri
tes:
> We are trying to manage almost all zones served by a slave dynamically via
> addzone and delzone, but are having trouble with subnetted reverse zones.
> The problem is that adding the zone is successful (it's resolvable), but the
> entry written to the NZF file causes errors when the server is reloaded or
> restarted. An example:
>
> 1. Add the zone via rndc:
>
> /usr/sbin/rndc addzone \"160/27.3.2.1.in-addr.arpa\" '{ type slave; file "
> 160-27.3.2.1.in-addr.arpa"; masters { 5.6.7.8; }; };'
>
> Note the escaped quotes, required to avoid an "unexpected token" error
> from rndc. At this point dig can resolve this zone. The NZF file contains
> this line:
>
> zone 160/27.3.2.1.in-addr.arpa { type slave; file "160-27.3.2.1.in-addr.ar
> pa"; masters { 5.6.7.8; }; };
>
> 2. Restart named via "rndc reload". This causes the following message to
> appear in the syslog:
>
> named[1275]: config: error: 3bf305731dd26307.nzf:71066: '{' expected near
> '/'
>
> At this ping, no zones specified in the NZF file are loaded according to
> "rndc status" and queries are refused.
>
> 3. Edit the NZF so that this zone's name is quoted, as shown below:
>
> zone "160/27.3.2.1.in-addr.arpa" { type slave; file "160-27.3.2.12.in-addr
> .arpa"; masters { 5.6.7.8; }; };
>
> Issuing an "rndc reload" now causes the server to load the zones and answe
> r
> queries.
>
> It seems that quotes are required if the zone name contains a slash (and
> possibly other characters) and whatever is in charge of writing that file is
> not quoting the name when necessary. But maybe we're doing this the
> wrong way.
>
> Chuck
> _______________________________________________
> Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe
> from this list
>
> bind-users mailing list
> bind-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/bind-users
--
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