4191. [protocol] Accept DNS-SD non LDH PTR records in reverse zones
as per RFC 6763. [RT #37889]
This commit is contained in:
@@ -26,6 +26,9 @@ do
|
||||
zones/good-gc-msdcs.db)
|
||||
$CHECKZONE -k fail -i local example $db > test.out.$n 2>&1 || ret=1
|
||||
;;
|
||||
zones/good-dns-sd-reverse.db)
|
||||
$CHECKZONE -k fail -i local 0.0.0.0.in-addr.arpa $db > test.out.$n 2>&1 || ret=1
|
||||
;;
|
||||
*)
|
||||
$CHECKZONE -i local example $db > test.out.$n 2>&1 || ret=1
|
||||
;;
|
||||
@@ -39,7 +42,14 @@ for db in zones/bad*.db
|
||||
do
|
||||
echo "I:checking $db ($n)"
|
||||
ret=0
|
||||
$CHECKZONE -i local example $db > test.out.$n 2>&1 && ret=1
|
||||
case $db in
|
||||
zones/bad-dns-sd-reverse.db)
|
||||
$CHECKZONE -k fail -i local 0.0.0.0.in-addr.arpa $db > test.out.$n 2>&1 && ret=1
|
||||
;;
|
||||
*)
|
||||
$CHECKZONE -i local example $db > test.out.$n 2>&1 && ret=1
|
||||
;;
|
||||
esac
|
||||
n=`expr $n + 1`
|
||||
if [ $ret != 0 ]; then echo "I:failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
10
bin/tests/system/checkzone/zones/bad-dns-sd-reverse.db
Normal file
10
bin/tests/system/checkzone/zones/bad-dns-sd-reverse.db
Normal file
@@ -0,0 +1,10 @@
|
||||
$TTL 60
|
||||
@ IN SOA . . 0 0 0 0 0
|
||||
@ IN NS .
|
||||
;
|
||||
; The following are *not* Service Discovery Prefixes from RFC 6763 and the
|
||||
; PTR check-names rules for IN-ADDR.ARPA and IP6.ARPA do still apply.
|
||||
;
|
||||
b._fail._udp IN PTR !@#3.
|
||||
db._wrong._udp IN PTR !@#3.
|
||||
lb._dns-sd._tcp IN PTR !@#3.
|
||||
12
bin/tests/system/checkzone/zones/good-dns-sd-reverse.db
Normal file
12
bin/tests/system/checkzone/zones/good-dns-sd-reverse.db
Normal file
@@ -0,0 +1,12 @@
|
||||
$TTL 60
|
||||
@ IN SOA . . 0 0 0 0 0
|
||||
@ IN NS .
|
||||
;
|
||||
; The following are Service Discovery Prefixes from RFC 6763 and the
|
||||
; PTR check-names rules for IN-ADDR.ARPA and IP6.ARPA do not apply.
|
||||
;
|
||||
b._dns-sd._udp IN PTR !@#3.
|
||||
db._dns-sd._udp IN PTR !@#3.
|
||||
r._dns-sd._udp IN PTR !@#3.
|
||||
dr._dns-sd._udp IN PTR !@#3.
|
||||
lb._dns-sd._udp IN PTR !@#3.
|
||||
Reference in New Issue
Block a user