4191. [protocol] Accept DNS-SD non LDH PTR records in reverse zones

as per RFC 6763. [RT #37889]
This commit is contained in:
Mark Andrews
2015-08-25 14:46:06 +10:00
parent 3979031a06
commit 5855fd79e3
9 changed files with 120 additions and 2 deletions

View File

@@ -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`

View 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.

View 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.