It seems the RFC 2672 isn't too clear about it, but all checked authoritative servers don't provide the authority section in case of YXDOMAIN caused by too long synthesized name.
@@ -196,7 +196,6 @@ Query::process() const {
*/
catch (const isc::dns::TooLongName&) {
response_.setRcode(Rcode::YXDOMAIN());
- getAuthAdditional(*result.zone);
return;
}
// No break; here, fall trough.
@@ -641,8 +641,8 @@ TEST_F(QueryTest, LongDNAME) {
"somethingveryveryverylong.longdname.example.com"), RRType::A(),
response).process());
- responseCheck(response, Rcode::YXDOMAIN(), AA_FLAG, 1, 3, 3,
- dname_long_txt, zone_ns_txt, ns_addrs_txt);
+ responseCheck(response, Rcode::YXDOMAIN(), AA_FLAG, 1, 0, 0,
+ dname_long_txt, NULL, NULL);