mirror of
https://github.com/coredns/coredns.git
synced 2025-11-02 02:03:13 -05:00
send notifies after adding zones all zones (#5774)
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user