]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
filter NSEC/NSEC3 in zone2sql
authorPeter van Dijk <peter.van.dijk@netherlabs.nl>
Thu, 22 Nov 2012 14:42:24 +0000 (14:42 +0000)
committerPeter van Dijk <peter.van.dijk@netherlabs.nl>
Thu, 22 Nov 2012 14:42:24 +0000 (14:42 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2915 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/backends/bind/zone2sql.cc

index 5abaf7fd93fa7eee8a48af3fb6990c695252f3e8..c4108b26da846cd16ecb45a58a2d4e7666f00aad 100644 (file)
@@ -95,6 +95,10 @@ static void emitRecord(const string& zoneName, const string &qname, const string
 {
   g_numRecords++;
   string content(ocontent);
+
+  if(qtype == "NSEC" || qtype == "NSEC3")
+    return; // NSECs do not go in the database
+
   if(qtype == "MX" || qtype == "SRV") { 
     prio=atoi(content.c_str());