send notifies after adding zones all zones (#5774)

Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
This commit is contained in:
Chris O'Haver
2023-02-15 13:25:02 -05:00
committed by GitHub
parent ad623eb0d6
commit 77c7c0b4cb
4 changed files with 21 additions and 5 deletions

View File

@@ -17,3 +17,15 @@ func (a Auto) Transfer(zone string, serial uint32) (<-chan []dns.RR, error) {
}
return z.Transfer(serial)
}
// Notify sends notifies for all zones with secondaries configured with the transfer plugin
func (a Auto) Notify() error {
var err error
for _, origin := range a.Zones.Names() {
e := a.transfer.Notify(origin)
if e != nil {
err = e
}
}
return err
}