mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
Merge branch 'matthijs-one-more-rfc4592-test' into 'main'
Add one more RFC 4592 test See merge request isc-projects/bind9!3764
This commit is contained in:
commit
9724b6f68d
2 changed files with 11 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue