Some backends (e.g. the LDAP backend, and the remote backend when the
operator does not provide an id) do not have an id per zone. This would
still add out of zone data to the additional section.
while(B.get(rr)) {
if(rr.dr.d_type != QType::A && rr.dr.d_type!=QType::AAAA)
continue;
+ if(!rr.dr.d_name.isPartOf(soadata.qname)) {
+ // FIXME we might still pass on the record if it is occluded and the
+ // backend uses a single id for all zones
+ continue;
+ }
rr.dr.d_place=DNSResourceRecord::ADDITIONAL;
toAdd.push_back(rr);
}