]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
rec: Check that we get the SOA on a direct query for a non-existing DS 10518/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 23 Jun 2021 09:25:15 +0000 (11:25 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 23 Jun 2021 09:25:15 +0000 (11:25 +0200)
In a regression test this time.

regression-tests.recursor-dnssec/basicDNSSEC.py

index b6b26fafd0617d68eb9b8b0932ba2759a29da469..4a71292e9b55d8fdcd8594dcb9e9c3a252b8d8a8 100644 (file)
@@ -25,6 +25,14 @@ class BasicDNSSEC(RecursorTest):
         self.assertNoRRSIGsInAnswer(res)
         self.assertRcodeEqual(res, dns.rcode.NOERROR)
 
+        # now we request the DS for insecure.example., which does not exist,
+        # to check that we correctly get the SOA and not just the denial proof
+        # that the recursor received on the delegation from example. to insecure.example.
+        res = self.sendQuery('insecure.example.', 'DS')
+        self.assertRcodeEqual(res, dns.rcode.NOERROR)
+        self.assertMessageIsAuthenticated(res)
+        self.assertAuthorityHasSOA(res)
+
     def testBogusAnswer(self):
         res = self.sendQuery('ted.bogus.example.', 'A')