]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add one more RFC 4592 test
authorMatthijs Mekking <matthijs@isc.org>
Tue, 16 Jun 2020 06:26:39 +0000 (08:26 +0200)
committerMatthijs Mekking <matthijs@isc.org>
Tue, 30 Jun 2020 05:22:24 +0000 (05:22 +0000)
This deals with the SRV example.

bin/tests/system/wildcard/ns1/example.db.in
bin/tests/system/wildcard/tests.sh

index 56da153e4aad704d46ac66f614b0d0f1282e4d5c..1c62aff79228abe0a92999acbd44da7e3d55aad0 100644 (file)
@@ -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.
index 868843638394813827e11f2b31454c2365e4dd94..f0fcdb4f91f787abc42df5a43383374212713893 100644 (file)
@@ -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