Currently adding a zone requires a Samba restart because the internal DNS loads zones on startup and is never notified of zone changes. This is inconvenient.
CCing Amitay as the author of the dnsserver RPC code.
Hi Kai, dnsserver RPC code reloads the zones when new zones are created. Is there a way to notify internal dns server about this change? I wanted to set up a pipe between DNS RPC server and internal DNS server, so most of the database operations can actually be done from one place and only protocol handling (RPC vs. DNS) is done in the local code. I guess it's a long term project now that I am no longer working on samba full time. :(
No, there is no way to notify the internal DNS yet. This is more of a reminder bug so we can fix this for 4.1.
We are running s4+bind. And any change on DNS (e. g. adding a record) requires a restart of samba to bring the changes live: # samba-tool dns add 192.168.29.2 muc.medizinische-genetik.de marc9 A 192.168.29.70 -Uadministrator Password for [MUC\administrator]: Record added successfully # host -t A marc9.muc.medizinische-genetik.de. Host marc9.muc.medizinische-genetik.de. not found: 3(NXDOMAIN) # /etc/init.d/rc.samba4 restart Shutting down samba4: [ OK ] Starting samba4: [ OK ] # host -t A marc9.muc.medizinische-genetik.de. marc9.muc.medizinische-genetik.de has address 192.168.29.70
*** Bug 9949 has been marked as a duplicate of this bug. ***
Andrew suggested to reread the zones when we run into an NXDOMAIN error before forwarding, but before I do this, I think we need a good way to time the impact this has on requests.
at least we should not reread it on any NXDOMAIN I think. Some misconfigured clients or silly software can generate LOT's of requests that result in NXDOMAIN replies. We should probably throttle the reread rate if we go this way.
*** Bug 10032 has been marked as a duplicate of this bug. ***
Created attachment 10524 [details] Patch to notify DNS server when zones are created or deleted through RPC (for 4.0)
Created attachment 10525 [details] Patch to notify DNS server when zones are created or deleted through RPC (for 4.1)
Created attachment 10821 [details] 4.2 patch cherry-picked from master
Created attachment 10822 [details] 4.2 patch cherry-picked from master