self.assertTrue(dnskey_found, "DNSKEY record not found in the answer section")
# Validate RRSIG record for DNSKEY
- rrsig_found = any(rrset.rdtype == dns.rdatatype.RRSIG and rrset.covers == dns.rdatatype.DNSKEY for rrset in res.answer)
+ rrsig_found = any(rrset.rdtype == dns.rdatatype.RRSIG and rrset.covers == dns.rdatatype.DNSKEY and rrset[0].key_tag == 22273 for rrset in res.answer)
self.assertTrue(rrsig_found, "RRSIG for DNSKEY not found in the answer section")
def testDNSKEYQueryWithoutDNSSEC(self):