Ensure base64/base32/hex fields in DNS records that should be non-empty are.

This commit is contained in:
Mark Andrews
2019-01-04 15:20:04 +11:00
parent 5114270fa7
commit 5e8b772ad1
26 changed files with 135 additions and 70 deletions

View File

@@ -36,15 +36,16 @@ done
for db in zones/bad*.db
do
echo_i "checking $db ($n)"
ret=0
ret=0 v=0
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 -k fail -i local 0.0.0.0.in-addr.arpa $db > test.out.$n 2>&1 || v=$?
;;
*)
$CHECKZONE -i local example $db > test.out.$n 2>&1 && ret=1
$CHECKZONE -i local example $db > test.out.$n 2>&1 || v=$?
;;
esac
test $v = 1 || ret=1
n=`expr $n + 1`
if [ $ret != 0 ]; then echo_i "failed"; fi
status=`expr $status + $ret`

View File

@@ -0,0 +1,2 @@
@ 3600 DHCID
@ 3600 DHCID

View File

@@ -0,0 +1,2 @@
@ EID
@ EID

View File

@@ -0,0 +1,2 @@
@ 3600 NIMLOC
@ 3600 NIMLOC

View File

@@ -14,7 +14,7 @@ dyn.example.net. 7200 IN SOA ns1.example.net. hostmaster.example.net. (
1209600 ; expire (2 weeks)
7200 ; minimum (2 hours)
)
7200 RRSIG SOA 7 3 7200 2010 20100225214229 30323 dyn.example.net.
7200 RRSIG SOA 7 3 7200 2010 20100225214229 30323 dyn.example.net. MuyI
7200 NS ns1.example.net.
7200 NS ns2.example.net.
3600 RRSIG DNSKEY 7 3 3600 20100227180048 (