test "$ret" -eq 0 || echo_i "failed"
status=$((status+ret))
-if [ -x ${DELV} ] ; then
+if [ -x "${DELV}" ] ; then
ret=0
echo_i "checking positive validation NSEC using dns_client ($n)"
delv_with_opts @10.53.0.4 a a.example > delv.out$n || ret=1
test "$ret" -eq 0 || echo_i "failed"
status=$((status+ret))
-if [ -x ${DELV} ] ; then
+if [ -x "${DELV}" ] ; then
ret=0
echo_i "checking positive validation NSEC3 using dns_client ($n)"
delv_with_opts @10.53.0.4 a a.nsec3.example > delv.out$n || ret=1
SP="[[:space:]]+"
-if [ -x ${DELV} ] ; then
+if [ -x "${DELV}" ] ; then
ret=0
echo_i "checking positive validation OPTOUT using dns_client ($n)"
delv_with_opts @10.53.0.4 a a.optout.example > delv.out$n || ret=1
test "$ret" -eq 0 || echo_i "failed"
status=$((status+ret))
-if [ -x ${DELV} ] ; then
+if [ -x "${DELV}" ] ; then
ret=0
echo_i "checking positive wildcard validation NSEC using dns_client ($n)"
delv_with_opts @10.53.0.4 a a.wild.example > delv.out$n || ret=1
test "$ret" -eq 0 || echo_i "failed"
status=$((status+ret))
-if [ -x ${DELV} ] ; then
+if [ -x "${DELV}" ] ; then
ret=0
echo_i "checking positive wildcard validation NSEC3 using dns_client ($n)"
delv_with_opts @10.53.0.4 a a.wild.nsec3.example > delv.out$n || ret=1
test "$ret" -eq 0 || echo_i "failed"
status=$((status+ret))
-if [ -x ${DELV} ] ; then
+if [ -x "${DELV}" ] ; then
ret=0
echo_i "checking positive wildcard validation OPTOUT using dns_client ($n)"
delv_with_opts @10.53.0.4 a a.wild.optout.example > delv.out$n || ret=1
test "$ret" -eq 0 || echo_i "failed"
status=$((status+ret))
-if [ -x ${DELV} ] ; then
+if [ -x "${DELV}" ] ; then
ret=0
echo_i "checking negative validation NXDOMAIN NSEC using dns_client ($n)"
delv_with_opts @10.53.0.4 a q.example > delv.out$n 2>&1 || ret=1
test "$ret" -eq 0 || echo_i "failed"
status=$((status+ret))
-if [ -x ${DELV} ] ; then
+if [ -x "${DELV}" ] ; then
ret=0
echo_i "checking negative validation NXDOMAIN NSEC3 using dns_client ($n)"
delv_with_opts @10.53.0.4 a q.nsec3.example > delv.out$n 2>&1 || ret=1
test "$ret" -eq 0 || echo_i "failed"
status=$((status+ret))
-if [ -x ${DELV} ] ; then
+if [ -x "${DELV}" ] ; then
ret=0
echo_i "checking negative validation NXDOMAIN OPTOUT using dns_client ($n)"
delv_with_opts @10.53.0.4 a q.optout.example > delv.out$n 2>&1 || ret=1
test "$ret" -eq 0 || echo_i "failed"
status=$((status+ret))
-if [ -x ${DELV} ] ; then
+if [ -x "${DELV}" ] ; then
ret=0
echo_i "checking negative validation NODATA OPTOUT using dns_client ($n)"
delv_with_opts @10.53.0.4 txt a.example > delv.out$n 2>&1 || ret=1
test "$ret" -eq 0 || echo_i "failed"
status=$((status+ret))
-if [ -x ${DELV} ] ; then
+if [ -x "${DELV}" ] ; then
ret=0
echo_i "checking negative validation NODATA NSEC3 using dns_client ($n)"
delv_with_opts @10.53.0.4 txt a.nsec3.example > delv.out$n 2>&1 || ret=1
test "$ret" -eq 0 || echo_i "failed"
status=$((status+ret))
-if [ -x ${DELV} ] ; then
+if [ -x "${DELV}" ] ; then
ret=0
echo_i "checking negative validation NODATA OPTOUT using dns_client ($n)"
delv_with_opts @10.53.0.4 txt a.optout.example > delv.out$n 2>&1 || ret=1
test "$ret" -eq 0 || echo_i "failed"
status=$((status+ret))
-if [ -x ${DELV} ] ; then
+if [ -x "${DELV}" ] ; then
ret=0
echo_i "checking negative wildcard validation NSEC using dns_client ($n)"
delv_with_opts @10.53.0.4 txt b.wild.example > delv.out$n 2>&1 || ret=1
test "$ret" -eq 0 || echo_i "failed"
status=$((status+ret))
-if [ -x ${DELV} ] ; then
+if [ -x "${DELV}" ] ; then
ret=0
echo_i "checking negative wildcard validation NSEC3 using dns_client ($n)"
delv_with_opts @10.53.0.4 txt b.wild.nsec3.example > delv.out$n 2>&1 || ret=1
test "$ret" -eq 0 || echo_i "failed"
status=$((status+ret))
-if [ -x ${DELV} ] ; then
+if [ -x "${DELV}" ] ; then
ret=0
echo_i "checking negative wildcard validation OPTOUT using dns_client ($n)"
delv_with_opts @10.53.0.4 txt b.optout.nsec3.example > delv.out$n 2>&1 || ret=1
test "$ret" -eq 0 || echo_i "failed"
status=$((status+ret))
-if [ -x ${DELV} ] ; then
+if [ -x "${DELV}" ] ; then
ret=0
echo_i "checking 1-server insecurity proof NSEC using dns_client ($n)"
delv_with_opts @10.53.0.4 a a.insecure.example > delv.out$n || ret=1
test "$ret" -eq 0 || echo_i "failed"
status=$((status+ret))
-if [ -x ${DELV} ] ; then
+if [ -x "${DELV}" ] ; then
ret=0
echo_i "checking 1-server insecurity proof NSEC3 using dns_client ($n)"
delv_with_opts @10.53.0.4 a a.insecure.nsec3.example > delv.out$n || ret=1
test "$ret" -eq 0 || echo_i "failed"
status=$((status+ret))
-if [ -x ${DELV} ] ; then
+if [ -x "${DELV}" ] ; then
ret=0
echo_i "checking 1-server insecurity proof OPTOUT using dns_client ($n)"
delv_with_opts @10.53.0.4 a a.insecure.optout.example > delv.out$n || ret=1
test "$ret" -eq 0 || echo_i "failed"
status=$((status+ret))
-if [ -x ${DELV} ] ; then
+if [ -x "${DELV}" ] ; then
ret=0
echo_i "checking 1-server negative insecurity proof NSEC using dns_client ($n)"
delv_with_opts @10.53.0.4 a q.insecure.example > delv.out$n 2>&1 || ret=1
test "$ret" -eq 0 || echo_i "failed"
status=$((status+ret))
-if [ -x ${DELV} ] ; then
+if [ -x "${DELV}" ] ; then
ret=0
echo_i "checking 1-server negative insecurity proof NSEC3 using dns_client ($n)"
delv_with_opts @10.53.0.4 a q.insecure.nsec3.example > delv.out$n 2>&1 || ret=1
test "$ret" -eq 0 || echo_i "failed"
status=$((status+ret))
-if [ -x ${DELV} ] ; then
+if [ -x "${DELV}" ] ; then
ret=0
echo_i "checking 1-server negative insecurity proof OPTOUT using dns_client ($n)"
delv_with_opts @10.53.0.4 a q.insecure.optout.example > delv.out$n 2>&1 || ret=1
test "$ret" -eq 0 || echo_i "failed"
status=$((status+ret))
-if [ -x ${DELV} ] ; then
+if [ -x "${DELV}" ] ; then
ret=0
echo_i "checking failed validation using dns_client ($n)"
delv_with_opts +cd @10.53.0.4 a a.bogus.example > delv.out$n 2>&1 || ret=1
test "$ret" -eq 0 || echo_i "failed"
status=$((status+ret))
-if [ -x ${DELV} ] ; then
+if [ -x "${DELV}" ] ; then
ret=0
echo_i "checking that validation fails when key record is missing using dns_client ($n)"
delv_with_opts +cd @10.53.0.4 a a.b.keyless.example > delv.out$n 2>&1 || ret=1
test "$ret" -eq 0 || echo_i "failed"
status=$((status+ret))
-if [ -x ${DELV} ] ; then
+if [ -x "${DELV}" ] ; then
ret=0
echo_i "checking that validation succeeds when a revoked key is encountered using dns_client ($n)"
delv_with_opts +cd @10.53.0.4 soa revkey.example > delv.out$n 2>&1 || ret=1
if [ $ret != 0 ]; then echo_i "failed"; fi
status=$((status + ret))
-if [ -x ${RESOLVE} ] ; then
+if [ -x "${RESOLVE}" ] ; then
n=$((n+1))
echo_i "checking non-cachable NXDOMAIN response handling using dns_client ($n)"
ret=0
status=$((status + ret))
fi
-if [ -x ${RESOLVE} ] ; then
+if [ -x "${RESOLVE}" ] ; then
n=$((n+1))
echo_i "checking that local bound address can be set (Can't query from a denied address) ($n)"
ret=0
if [ $ret != 0 ]; then echo_i "failed"; fi
status=$((status + ret))
-if [ -x ${RESOLVE} ] ; then
+if [ -x "${RESOLVE}" ] ; then
n=$((n+1))
echo_i "checking non-cachable NODATA response handling using dns_client ($n)"
ret=0
# If the server has the "INSIST(!external)" bug, this query will kill it.
dig_with_opts +tcp www.example.com. a @10.53.0.1 >/dev/null || { echo_i "failed"; status=$((status + 1)); }
-if [ -x ${RESOLVE} ] ; then
+if [ -x "${RESOLVE}" ] ; then
n=$((n+1))
echo_i "checking handling of bogus referrals using dns_client ($n)"
ret=0
status=$((status + ret))
-if [ -x ${RESOLVE} ] ; then
+if [ -x "${RESOLVE}" ] ; then
n=$((n+1))
echo_i "checking answer IPv4 address filtering using dns_client (accept) ($n)"
ret=0
if [ $ret != 0 ]; then echo_i "failed"; fi
status=$((status + ret))
-if [ -x ${RESOLVE} ] ; then
+if [ -x "${RESOLVE}" ] ; then
n=$((n+1))
echo_i "checking answer IPv6 address filtering using dns_client (accept) ($n)"
ret=0
if [ $ret != 0 ]; then echo_i "failed"; fi
status=$((status + ret))
-if [ -x ${RESOLVE} ] ; then
+if [ -x "${RESOLVE}" ] ; then
n=$((n+1))
echo_i "checking CNAME target filtering using dns_client (accept) ($n)"
ret=0
if [ $ret != 0 ]; then echo_i "failed"; fi
status=$((status + ret))
-if [ -x ${RESOLVE} ] ; then
+if [ -x "${RESOLVE}" ] ; then
n=$((n+1))
echo_i "checking CNAME target filtering using dns_client (accept due to subdomain) ($n)"
ret=0
if [ $ret != 0 ]; then echo_i "failed"; fi
status=$((status + ret))
-if [ -x ${RESOLVE} ] ; then
+if [ -x "${RESOLVE}" ] ; then
n=$((n+1))
echo_i "checking DNAME target filtering using dns_client (accept) ($n)"
ret=0
if [ $ret != 0 ]; then echo_i "failed"; fi
status=$((status + ret))
-if [ -x ${RESOLVE} ] ; then
+if [ -x "${RESOLVE}" ] ; then
n=$((n+1))
echo_i "checking DNAME target filtering using dns_client (accept due to subdomain) ($n)"
ret=0