4377. [bug] Don't reuse zero TTL responses beyond the current

client set (excludes ANY/SIG/RRSIG queries).
                        [RT #42142]
This commit is contained in:
Mark Andrews
2016-05-27 09:59:46 +10:00
parent 6c2a76b3e2
commit aabcb1fde0
5 changed files with 164 additions and 0 deletions

View File

@@ -44,5 +44,18 @@ done
if [ $ret != 0 ]; then echo "I:failed"; fi
status=`expr $status + $ret`
echo "I:check repeated recursive lookups of non recurring zero ttl responses get new values"
count=`(
dig +short -p 5300 @10.53.0.3 foo.increment
dig +short -p 5300 @10.53.0.3 foo.increment
dig +short -p 5300 @10.53.0.3 foo.increment
dig +short -p 5300 @10.53.0.3 foo.increment
dig +short -p 5300 @10.53.0.3 foo.increment
dig +short -p 5300 @10.53.0.3 foo.increment
dig +short -p 5300 @10.53.0.3 foo.increment
) | sort -u | wc -l `
if [ $count -ne 7 ] ; then echo "I:failed (count=$count)"; ret=1; fi
status=`expr $status + $ret`
echo "I:exit status: $status"
exit $status