return false;
}
-static const DNSName getLastLabel(const DNSName& qname)
-{
- DNSName ret(qname);
- ret.trimToLabels(1);
- return ret;
-}
-
static inline void addTTLModifiedRecords(const vector<DNSRecord>& records, const uint32_t ttl, vector<DNSRecord>& ret) {
for (const auto& rec : records) {
DNSRecord r(rec);
harvestNXRecords(lwr.d_records, ne);
t_sstorage->negcache.add(ne);
if(s_rootNXTrust && auth.isRoot()) { // We should check if it was forwarded here, see issue #5107
- ne.d_name = getLastLabel(ne.d_name);
+ ne.d_name = ne.d_name.getLastLabel();
t_sstorage->negcache.add(ne);
}
}