]> granicus.if.org Git - pdns/commitdiff
prevent zone2sql and zone2ldap from importing the 'hints' zone into powerdns, which...
authorBert Hubert <bert.hubert@netherlabs.nl>
Tue, 8 Feb 2011 21:32:31 +0000 (21:32 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Tue, 8 Feb 2011 21:32:31 +0000 (21:32 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@1998 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/backends/bind/zone2ldap.cc
pdns/backends/bind/zone2sql.cc

index 0ee9b699d17d0a7eb95db5ad9a3309384af63adf..4fb208b50307bb6cc76e862aa96c47fb03ff1fa5 100644 (file)
@@ -194,6 +194,10 @@ int main( int argc, char* argv[] )
 
                        for( vector<BindDomainInfo>::const_iterator i = domains.begin(); i != domains.end(); i++ )
                        {
+                                       if(i->type!="master" && i->type!="slave") {
+                                               cerr<<" Warning! Skipping '"<<i->type<<"' zone '"<<i->name<<"'"<<endl;
+                                               continue;
+                                       }
                                try
                                {
                                        if( i->name != "." && i->name != "localhost" && i->name != "0.0.127.in-addr.arpa" )
index 8af1ffc8c58ae7bd552894a98c5e5d320cff291a..b6178933a4456be814b9ec07ca7065d8f443c37f 100644 (file)
@@ -282,6 +282,10 @@ int main(int argc, char **argv)
           i!=domains.end();
           ++i)
         {
+                 if(i->type!="master" && i->type!="slave") {
+                       cerr<<" Warning! Skipping '"<<i->type<<"' zone '"<<i->name<<"'"<<endl;
+                       continue;
+          }
           try {
             if(mode==POSTGRES || mode==ORACLE) {
               if(g_intransaction && ::arg().mustDo("transactions")) {