I've narrowed it down to why my reverse zone is not being updated, but don't know why...
On a test server, the reverse zone updates. In my named.conf.local I have:
zone "1.1.10.in-addr.arpa" {
type master;
file "/var/lib/bind/db.1.1.10";
update-policy {
// The only allowed dynamic updates are PTR records
grant test.domain. subdomain 1.1.10.in-addr.arpa. PTR TXT;
// Grant from localhost
grant local-ddns zonesub any;
};
};
On my "production server" this entry is only populated if I have the Domain Controller and File Sharing module turned off. Once I turn it on the reverse zone disappears.
This gets populated via the /usr/share/zentyal/stubs/dns/named.conf.local.mas file:
<%args>
@domains
@inaddrs
$generateReverseZones
@intnets
@internalLocalNets => ()
$confDir
$dynamicConfDir
$sambaZones => undef
</%args>
...
% if ($generateReverseZones) {
% foreach my $inaddr (@inaddrs) {
% my $zoneName = $inaddr->{'ip'} . ".in-addr.arpa";
% next if (defined $sambaZones and
% lc ($zoneName) eq any @{$sambaZones});
zone "<% $zoneName %>" {
type master;
file "<% $inaddr->{'file'} %>";
update-policy {
// The only allowed dynamic updates are PTR records
% foreach my $keyName (@{$inaddr->{'keyNames'}}) {
grant <% $keyName %>. subdomain <% $inaddr->{'ip'} %>.in-addr.arpa. PTR TXT;
% }
// Grant from localhost
grant local-ddns zonesub any;
};
};
% }
Why is this reverse zone getting removed? What do I have configured wrong? I'm inclined to try just deleting the reverse zone, but don't want to end up in a worse situation than it is right now.