diff options
Diffstat (limited to 'tests-extra')
-rw-r--r-- | tests-extra/data/flags.zone | 3 | ||||
-rw-r--r-- | tests-extra/tests/basic/query/test.py | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/tests-extra/data/flags.zone b/tests-extra/data/flags.zone index a71811e1a..5bc42585e 100644 --- a/tests-extra/data/flags.zone +++ b/tests-extra/data/flags.zone @@ -19,6 +19,8 @@ mail A 192.0.2.3 ; Delegation of a subdomain sub NS ns.sub +sub NS sub +sub A 192.0.0.1 ns.sub A 192.0.2.4 ; CNAME to A record @@ -56,7 +58,6 @@ cname-mx-wc MX 10 cname-wildcard ; MX record leading to CNAME (outside zone) cname-mx-out MX 10 cname-out - ; DNAME subtree dname DNAME dname-tree dname-tree A 1.2.3.4 diff --git a/tests-extra/tests/basic/query/test.py b/tests-extra/tests/basic/query/test.py index 86e0c2dbb..89a430eef 100644 --- a/tests-extra/tests/basic/query/test.py +++ b/tests-extra/tests/basic/query/test.py @@ -56,6 +56,11 @@ resp = knot.dig("ns.sub.flags", "A", udp=True) resp.check(rcode="NOERROR", flags="QR", noflags="AA TC AD RA") resp.cmp(bind, additional=True) +# Positive (REFERRAL, below delegation, ignoring empty-nonterminal during lookup) +resp = knot.dig("bellow.ns.sub.flags", "A", udp=True) +resp.check(rcode="NOERROR", flags="QR", noflags="AA TC AD RA") +resp.cmp(bind, additional=True) + ''' ANY query type. ''' # ANY to SOA record |