return false;
}
- if (type == QType::DS && signer == name) {
+ if (type == QType::DS && !name.isRoot() && signer == name) {
LOG(" but this NSEC3 comes from the child zone and cannot be used to deny a DS");
return false;
}
break;
}
- if (type == QType::DS && signer == name) {
+ if (type == QType::DS && !name.isRoot() && signer == name) {
LOG(" but this NSEC3 comes from the child zone and cannot be used to deny a DS");
return false;
}
}
const DNSName nextCloserSigner = getSigner(nextCloserEntry.d_signatures);
- if (type == QType::DS && nextCloserSigner == name) {
+ if (type == QType::DS && !name.isRoot() && nextCloserSigner == name) {
LOG(" but this NSEC3 comes from the child zone and cannot be used to deny a DS");
return false;
}
return false;
}
- if (type == QType::DS && wcSigner == name) {
+ if (type == QType::DS && !name.isRoot() && wcSigner == name) {
LOG(" but this wildcard NSEC3 comes from the child zone and cannot be used to deny a DS");
return false;
}
}
const DNSName wcSigner = getSigner(wcEntry.d_signatures);
- if (type == QType::DS && wcSigner == name) {
+ if (type == QType::DS && !name.isRoot() && wcSigner == name) {
LOG(" but this wildcard NSEC3 comes from the child zone and cannot be used to deny a DS");
return false;
}