Commit 2b5b4f66 authored by Libor Peltan's avatar Libor Peltan

tests-extra: dname cname too long

parent 4438d159
......@@ -6,10 +6,14 @@ $TTL 10
A 10.0.0.1
AAAA fd00::a1
DNSKEY 256 3 13 Yg==
big DNAME uhuh
test CNAME @
uhuh AAAA fd00::a2
@ NSEC test A NS SOA AAAA RRSIG NSEC DNSKEY
test NSEC @ CNAME RRSIG NSEC
@ NSEC big A NS SOA AAAA RRSIG NSEC DNSKEY
big NSEC test DNAME RRSIG NSEC
test NSEC uhuh CNAME RRSIG NSEC
uhuh NSEC @ AAAA RRSIG NSEC
@ RRSIG SOA 13 1 10 20150810112233 20250810112233 26125 @ YQ==
RRSIG A 13 1 10 20150810112233 20250810112233 26125 @ YQ==
......@@ -17,5 +21,9 @@ test NSEC @ CNAME RRSIG NSEC
RRSIG AAAA 13 1 10 20150810112233 20250810112233 26125 @ YQ==
RRSIG DNSKEY 13 1 10 20150810112233 20250810112233 26125 @ YQ==
RRSIG NSEC 13 1 10 20150810112233 20250810112233 26125 @ YQ==
big RRSIG DNAME 13 2 10 20150810112233 20250810112233 26125 @ YQ==
RRSIG NSEC 13 2 10 20150810112233 20250810112233 26125 @ YQ==
test RRSIG CNAME 13 2 10 20150810112233 20250810112233 26125 @ YQ==
RRSIG NSEC 13 2 10 20150810112233 20250810112233 26125 @ YQ==
uhuh RRSIG AAAA 13 2 10 20150810112233 20250810112233 26125 @ YQ==
RRSIG NSEC 13 2 10 20150810112233 20250810112233 26125 @ YQ==
......@@ -6,6 +6,7 @@ Basic checks for CNAME following.
- Query for CNAME, NSEC, RRSIG is not followed.
- Query for ANY meta type is not followed.
- Query for any other type is followed.
- DNAME CNAME is too long.
"""
......@@ -69,4 +70,14 @@ resp.check_rr("answer", "test.follow", "RRSIG")
resp.check_no_rr("answer", "test")
resp.check_empty("authority")
# DNAME systhetizes too long CNAME
resp = knot.dig("63o-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx." +
"63o-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx." +
"63o-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx." +
"50o-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.big.follow.",
"CNAME", udp=True, dnssec=True)
resp.check(rcode="YXDOMAIN")
resp.check_record(section="answer", rtype="DNAME", rdata="uhuh.follow.")
resp.check_rr(section="answer", rname="big.follow.", rtype="RRSIG")
t.end()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment