[PATCH] Bug #9404 - Notify internal DNS server to reload zones when are added or deleted through RPC

Andrew Bartlett abartlet at samba.org
Sun Dec 14 15:07:43 MST 2014

On Thu, 2014-12-11 at 13:15 +0100, Samuel Cabrero wrote:
> Hi,
> The attached patches setup a IRPC handler in the internal DNS server 
> to reload the zones, triggered from RPC server when zones are created 
> or deleted.


This is a really neat approach, but sadly it has a fatal flaw:  We need
the same trigger to run when we have inbound replication over DRS. 

This means we can't trigger it from the RPC server, we need to trigger
it from inside the LDB module stack, after the end of the successful
modify transaction. 

That is, you need to have a module sniffing for changes below
repl_meta_data, that then sets a flag if it sees zone changes and waits
for the end_transaction call.  If that succeeds, it can then send a
notify message over IRPC.

It is critical that it be after the end_transaction, as we must ensure
that then transaction lock is gone, and that the other process would be
able to read the new zones. 

I hope this helps,

Andrew Bartlett

Andrew Bartlett
Authentication Developer, Samba Team  http://samba.org
Samba Developer, Catalyst IT          http://catalyst.net.nz/services/samba

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20141215/f4709cb9/attachment.pgp>

More information about the samba-technical mailing list