diff --git a/bin/tests/system/wildcard/ns1/example.db.in b/bin/tests/system/wildcard/ns1/example.db.in index 56da153e4a..1c62aff792 100644 --- a/bin/tests/system/wildcard/ns1/example.db.in +++ b/bin/tests/system/wildcard/ns1/example.db.in @@ -10,3 +10,5 @@ _ssh._tcp.host1.example. 3600 SRV 0 0 22 host1.example. _ssh._tcp.host2.example. 3600 SRV 0 0 22 host2.example. subdel.example. 3600 NS ns.example.com. subdel.example. 3600 NS ns.example.net. + +_foo._udp.*.example. 3600 IN SRV 0 1 9 old-slow-box.example. diff --git a/bin/tests/system/wildcard/tests.sh b/bin/tests/system/wildcard/tests.sh index 8688436383..f0fcdb4f91 100644 --- a/bin/tests/system/wildcard/tests.sh +++ b/bin/tests/system/wildcard/tests.sh @@ -230,5 +230,14 @@ grep "ANSWER: 0," dig.out.ns1.test$n > /dev/null || ret=1 if [ $ret != 0 ]; then echo_i "failed"; fi status=`expr $status + $ret` +n=`expr $n + 1` +echo_i "checking RFC 4592: _foo._udp.bar.example. QTYPE=SRV, QCLASS=IN ($n)" +ret=0 +$DIG $DIGOPTS @10.53.0.1 "_foo._udp.bar.example" SRV IN > dig.out.ns1.test$n || ret=1 +grep "status: NOERROR" dig.out.ns1.test$n > /dev/null || ret=1 +grep "ANSWER: 0," dig.out.ns1.test$n > /dev/null || ret=1 +if [ $ret != 0 ]; then echo_i "failed"; fi +status=`expr $status + $ret` + echo_i "exit status: $status" [ $status -eq 0 ] || exit 1