"legacy" system test failure on "checking recursive lookup to drop edns server fails"
See https://gitlab.isc.org/isc-projects/bind9/-/jobs/3015722.
The dig.out.test8
file's contents:
;; communications error to 10.53.0.1#11314: timed out
;; communications error to 10.53.0.1#11314: timed out
;; communications error to 10.53.0.1#11314: timed out
; <<>> DiG 9.19.9-dev <<>> -p 11314 +tries +time +tcp +tries +time @10.53.0.1 dropedns. TXT
; (1 server found)
;; global options: +cmd
;; no servers could be reached
The code that checks for the expected failure:
resolution_fails() {
_servfail=0
_timeout=0
$DIG $DIGOPTS +tcp +tries=3 +time=5 @10.53.0.1 ${1} TXT > dig.out.test$n
grep "status: SERVFAIL" dig.out.test$n > /dev/null && _servfail=1
grep "connection timed out" dig.out.test$n > /dev/null && _timeout=1
if [ $_servfail -eq 1 ] || [ $_timeout -eq 1 ]; then
return 0
else
return 1
fi
}
So the test checks for "connection timed out", while current dig
versions from v9.18 and v9.19 print only "timed out", without the word "connection".