self.assertRcodeEqual(res, dns.rcode.NXDOMAIN)
self.assertMessageIsAuthenticated(res)
+
+ def testSecureWildcardAnswer(self):
+ res = self.sendQuery('something.wildcard.secure.example.', 'A')
+ expected = dns.rrset.from_text('something.wildcard.secure.example.', 0, dns.rdataclass.IN, 'A', '192.0.2.10')
+
+ self.assertRcodeEqual(res, dns.rcode.NOERROR)
+ self.assertMatchingRRSIGInAnswer(res, expected)
+ self.assertMessageIsAuthenticated(res)
host1.secure.example. 3600 IN A 192.0.2.2
host1.sub.secure.example. 3600 IN A 192.0.2.11
+
+*.wildcard.secure.example. 3600 IN A 192.0.2.10
""",
'bogus.example': """
bogus.example. 3600 IN SOA {soa}