[PATCH] s4-dns: dlz-bind9: Continue lookup if error on multivalued record types

Amitay Isaacs amitay at gmail.com
Thu Jul 31 00:55:47 MDT 2014

On Thu, Jul 31, 2014 at 12:09 AM, Samuel Cabrero <scabrero at zentyal.com>

> Hi Amitay,
> I have made the test work, but I found another issue. The internal DNS
> server caches the zones when the task start so if a new zone is added it is
> not aware of it until samba restarts. All queries for that zone are
> forwarded or fail with NXDOMAIN.
> I see two options here:
> 1. Do not cache the zones and behave like the bind dlz, querying the
> database in each DNS query.
> 2. Implement IRPC handlers in dns server for zone created/deleted, and
> call them whenever a zone is created or deleted through RPC to reload
> cached zones.
> Which one do you think is better?

You have hit the nail on the head. :-)  Kai and I have discussed the issue
of duplication of code in rpc dnsserver and dns server.  Any sort of merge
would also require communication between rpc dnsserver and dns server.
However, neither of us had time to actually implement it.  The issue of not
being able to reload zones without restarting samba has been raised few
times.  So if we can implement that, then it would be much better.

The issue is not only when the zones are added/deleted, but also when the
records are updated, the serial changes and that would need to be reflected
in dns server.

Kai, any comments/suggestions?


More information about the samba-technical mailing list