/* should be scrubbed because it doesn't match any of the accepted names in this answer (mostly 'domain') */
addRecordToLW(res, DNSName("powerdns.com."), QType::AAAA, "2001:db8::1", DNSResourceRecord::ADDITIONAL);
return 1;
-
- return 0;
});
const time_t now = sr->getNow().tv_sec;
addRecordToLW(res, domain, QType::A, "192.0.2.1");
addRecordToLW(res, domain, QType::AAAA, "2001:db8::1", DNSResourceRecord::ADDITIONAL);
return 1;
-
- return 0;
});
const time_t now = sr->getNow().tv_sec;
if (rec->d_place == DNSResourceRecord::AUTHORITY && rec->d_type == QType::NS && (isNXDomain || isNXQType)) {
/* we don't want to pick up NS records in AUTHORITY or ADDITIONAL sections of NXDomain answers
because they are somewhat easy to insert into a large, fragmented UDP response
- for an off-path attacker by injecting spoofed UDP fragments.
+ for an off-path attacker by injecting spoofed UDP fragments.
*/
LOG(prefix<<"Removing NS record '"<<rec->d_name<<"|"<<DNSRecordContent::NumberToType(rec->d_type)<<"|"<<rec->d_content->getZoneRepresentation()<<"' in the "<<(int)rec->d_place<<" section of a "<<(isNXDomain ? "NXD" : "NXQTYPE")<<" response received from "<<auth<<endl);
rec = lwr.d_records.erase(rec);
- continue;
+ continue;
}
if (rec->d_place == DNSResourceRecord::AUTHORITY && rec->d_type == QType::NS) {