<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 23 May 2019, at 10:20, <a href="mailto:sandermoors@telenet.be" class="">sandermoors@telenet.be</a> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><div style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt;" class=""><div class="">Hi Frank,</div><div class=""><br data-mce-bogus="1" class=""></div><div class="">Intercepting the NOTIFYs with a script sounds like a good idea but can this be done with PowerDNS?</div><div class="">Or do you mean writing a custom script that acts a a notify proxy/filter?</div><div class=""><br data-mce-bogus="1" class=""></div></div></div></div></blockquote><br class=""></div><div>Yes, use a separate notify proxy/filter. There are multiple scripts that you can use as a base for this, eg: <a href="https://fanf.livejournal.com/134988.html" class="">https://fanf.livejournal.com/134988.html</a> (or use GitHub to search for DNS NOTIFY once GitHub is back up).</div><div><br class=""></div><div>You could probably construct a mysql trigger that handles everything btw. Create a before insert trigger on the domains tables, check if the new record is of type slave. If so, split it into parts, and for each part, check if that domain already exists as a native domain. If so: drop the insert.</div><div><br class=""></div><div>Regards,</div><div><br class=""></div><div>Frank</div><br class=""><div class=""></div></body></html>