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

Samuel Cabrero scabrero at zentyal.com
Tue Dec 16 10:11:21 MST 2014


Andrew,

thank you for your comments. I have written a new LDB module and 
extended the dns.py tests.

Regards,

On lun, 2014-12-15 at 11:07 +1300, Andrew Bartlett wrote:
> 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.
> 
> Samuel,
> 
> 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
> 
> 
-- 
Samuel Cabrero - Developer
scabrero at zentyal.com

Zentyal - Active Exchange
www.zentyal.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-s4-dns-Reload-DNS-zones-from-dsdb-when-zones-are-mod.patch
Type: text/x-patch
Size: 18884 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20141216/56888b77/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-dns.py-Test-dns-server-reload-zones-from-DSDB-when-a.patch
Type: text/x-patch
Size: 4289 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20141216/56888b77/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: This is a digitally signed message part
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20141216/56888b77/attachment-0001.pgp>


More information about the samba-technical mailing list