Michael - I believe the key to getting rid of the unbound restarts is going back to the `unbound-control local_data` type commands.
But it doesn't correct the DNS leases problem you mentioned in: https://bugzilla.ipfire.org/show_bug.cgi?id=13254#c27
And I believe the DNS issue and be fixed by grabbing leases differently using the On Commit/Release/Expiry status
I am going to go back to bugzilla for now. And I'll post my updated script shortly...