if (col.first == "qtype")
rec.qtype = QType(boost::get<unsigned int>(col.second));
else if (col.first == "qname")
- rec.qname = DNSName(boost::get<std::string>(col.second));
+ rec.qname = DNSName(boost::get<std::string>(col.second)).makeLowerCase();
else if (col.first == "ttl")
rec.ttl = boost::get<unsigned int>(col.second);
else if (col.first == "content")
throw PDNSException("Zones with a mixture of Opt-Out NSEC3 RRs and non-Opt-Out NSEC3 RRs are not supported.");
zs.optOutFlag = ns3rc.d_flags & 1;
if (ns3rc.d_set.count(QType::NS) && !(rr.qname==domain)) {
- DNSName hashPart = rr.qname.makeRelative(domain).makeLowerCase();
+ DNSName hashPart = rr.qname.makeRelative(domain);
zs.secured.insert(hashPart);
}
return false;
}
for(Resolver::res_t::iterator i=recs.begin();i!=recs.end();++i) {
+ i->qname.makeUsLowerCase();
if(i->qtype.getCode() == QType::OPT || i->qtype.getCode() == QType::TSIG) // ignore EDNS0 & TSIG
continue;
rrs.reserve(axfr.size());
for(const auto& dr : axfr) {
auto rr = DNSResourceRecord::fromWire(dr);
- rr.qname += domain;
+ (rr.qname += domain).makeUsLowerCase();
rr.domain_id = zs.domain_id;
if(!processRecordForZS(domain, firstNSEC3, rr, zs))
continue;