status=$((status + ret))
cp ns3/named2.conf ns3/named.conf
-rndc_reconfig ns3 10.53.0.3
+stop_server --use-rndc --port ${CONTROLPORT} ns3
+start_server --noclean --restart --port ${PORT} ns3
n=$((n + 1))
echo_i "checking lame server clients are dropped at the per-domain limit ($n)"
sendcmd 10.53.0.4 send-responses "disable"
for try in 1 2 3 4 5; do
burst 10.53.0.3 d $try 300
- $DIGCMD a ${try}.example >dig.out.ns3.$n.$try
+ $DIGCMD a ${try}.example >dig.out.ns3.$n.$try || true
grep "status: NOERROR" dig.out.ns3.$n.$try >/dev/null 2>&1 \
&& success=$((success + 1))
grep "status: SERVFAIL" dig.out.ns3.$n.$try >/dev/null 2>&1 \
&& fail=$(($fail + 1))
stat 10.53.0.3 40 40 || ret=1
allowed=$(rndccmd 10.53.0.3 fetchlimit | awk '/lamesub/ { print $6 }')
- [ "${allowed:-0}" -eq 40 ] || ret=1
+ [ "${allowed:-0}" -eq 40 ] || {
+ echo_i "allowed ${allowed}/40"
+ ret=1
+ }
[ $ret -eq 1 ] && break
sleep 1
done
sleep 1
done
zspill=$(grep 'spilled due to zone' ns3/named.stats | sed 's/\([0-9][0-9]*\) spilled.*/\1/')
-[ -z "$zspill" ] && zspill=0
+[ "${zspill:-0}" -ne 0 ] || ret=1
drops=$(grep 'queries dropped' ns3/named.stats | sed 's/\([0-9][0-9]*\) queries.*/\1/')
-[ -z "$drops" ] && drops=0
-[ "$drops" -ge "$zspill" ] || ret=1
+[ "${drops:-0}" -ne 0 ] || ret=1
if [ $ret != 0 ]; then echo_i "failed"; fi
status=$((status + ret))
fctx_minimize_qname(fctx);
}
- result = fcount_incr(fctx, false);
- if (result != ISC_R_SUCCESS) {
- rctx->result = result;
- return ISC_R_COMPLETE;
+ if ((fctx->options & DNS_FETCHOPT_QMINFETCH) == 0) {
+ result = fcount_incr(fctx, false);
+ if (result != ISC_R_SUCCESS) {
+ rctx->result = result;
+ return ISC_R_COMPLETE;
+ }
}
/*