The suggestion to silently omit unsupported record types won't do as it creates unnoticed inconsistencies.
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@566
d19b8d6e-7fed-0310-83ef-
9ca221ded41b
#include "arguments.hh"
#include "session.hh"
#include "packetcache.hh"
+#include <boost/lexical_cast.hpp>
+
+using namespace boost;
void CommunicatorClass::addSuckRequest(const string &domain, const string &master, bool priority)
{
return;
}
i->domain_id=domain_id;
+ if(i->qtype.getCode()>=1024)
+ throw DBException("Database can't store unknown record type "+lexical_cast<string>(i->qtype.getCode()-1024));
+
di.backend->feedRecord(*i);
}
}