for DS records we need to look at the parent of the particular name.
Seems to fix #9433
if (!t_sstorage.domainmap->empty()) {
// Check if we are authoritative for a zone in this answer
DNSName tmp_qname(rec.d_name);
+ // We may be auth for domain example.com, but the DS record needs to come from the parent (.com) nameserver
+ if (rec.d_type == QType::DS) {
+ tmp_qname.chopOff();
+ }
auto auth_domain_iter=getBestAuthZone(&tmp_qname);
if(auth_domain_iter!=t_sstorage.domainmap->end() &&
auth.countLabels() <= auth_domain_iter->first.countLabels()) {