]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
auth: bindbackend: 'rediscover' changes to master and also-notifies 9524/head
authorMatti Hiljanen <matti.hiljanen@elisa.fi>
Fri, 25 Sep 2020 05:54:18 +0000 (08:54 +0300)
committerMatti Hiljanen <matti.hiljanen@elisa.fi>
Fri, 25 Sep 2020 06:13:02 +0000 (09:13 +0300)
modules/bindbackend/bindbackend2.cc

index e7841a570d04c3de7ff4041ba8cf263af7e3a8fa..78c8f0c6aa27552f2b6f207455a7674927f2c8a5 100644 (file)
@@ -934,6 +934,7 @@ void Bind2Backend::loadConfig(string* status)
         // overwrite what we knew about the domain
         bbd.d_name=i->name;
         bool filenameChanged = (bbd.d_filename!=i->filename);
+        bool addressesChanged = (bbd.d_masters!=i->masters || bbd.d_also_notify!=i->alsoNotify);
         bbd.d_filename=i->filename;
         bbd.d_masters=i->masters;
         bbd.d_also_notify=i->alsoNotify;
@@ -986,8 +987,9 @@ void Bind2Backend::loadConfig(string* status)
             g_log<<Logger::Warning<<d_logprefix<<msg.str()<<endl;
             rejected++;
           }
-         safePutBBDomainInfo(bbd);
-         
+          safePutBBDomainInfo(bbd);
+        } else if(addressesChanged) {
+          safePutBBDomainInfo(bbd);
         }
       }
     vector<DNSName> diff;