tuxis-ie / nsedit

DNS Editor working with PowerDNS's new API
GNU General Public License v2.0
198 stars 55 forks source link

notify pdns after zone update #165

Closed Rico29 closed 6 years ago

Rico29 commented 6 years ago

Possibility to enable notification via API when a change is made on a zone

tuxis-ie commented 6 years ago

Please explain?

Rico29 commented 6 years ago

Hello, tuxis-ie Sorry, I want to create a pull request with changes I made...

I added a flag "notifyafterupdate" in config.inc.php. when this flag is set to true, then a notify is sent to slaves via the API : https://docs.powerdns.com/authoritative/http-api/zone.html#put--servers-server_id-zones-zone_id-notify

Just need to pull-request it

HLFH commented 6 years ago

It seems I had the issue one year ago with my slave that did not get the notify after DNS updates via nsedit.

It has changed now. The feature "Send a DNS NOTIFY to all slaves" is happening without https://github.com/tuxis-ie/nsedit/pull/166 commits.

My master and my slave are correctly configured. And I'm already receiving correctly the notify. @tuxis-ie Can you close the PR https://github.com/tuxis-ie/nsedit/pull/166 and this issue? This code will bloat nsedit and it should be done at the configuration level in pdns.conf with only-notify=::/0 to force IPv6 master/slave communication, and in the pdns database with supermasters table well set-up.