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

Samuel Cabrero scabrero at zentyal.com
Wed Jul 30 08:09:00 MDT 2014


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?

Samuel.

On 29/07/14 10:56, Amitay Isaacs wrote:
> On Thu, Jul 24, 2014 at 6:15 PM, Samuel Cabrero <scabrero at zentyal.com
> <mailto:scabrero at zentyal.com>> wrote:
>
>     Hi Amitay,
>
>     I have reformatted the patches following your hints, extended the
>     internal dns server tests to query for SOA and added the same test
>     for the bind dlz (the internal DNS server was not affected by the
>     issue, anyway I have written tests for both).
>
>     Samuel.
>
>
> The patches look good now.  However the tests are failing.  Have you
> tried running the tests?
>
>    make test TESTS=samba.tests.dns
>
> Your test is a bit tricky since it uses both RPC dnsserver interface and
> DNS interface.   You will have to inherit from both DNSTest and
> RpcInterfaceTestCase.  Then you automatically get the functions
> get_loadparm() and get_credentials().  You don't need to define your own.
>
> Let me know if you are not able to make the test work.
>
> Amitay.

-- 
Samuel Cabrero - Developer
scabrero at zentyal.com

Zentyal - Active Exchange
www.zentyal.com


More information about the samba-technical mailing list