dig: wrong return code for error 'communications error to ...: connection reset'
Summary
dig
returns wrong exit code for error communications error to ...: connection reset
BIND version used
$ dig -v
DiG 9.16.33-Debian
Steps to reproduce
NOTE: querying ns1-1.akamaitech.net
only fails from time to time, so reproducing this might take a few tries
$ dig -4 ANY whoami.akamai.net @ns1-1.akamaitech.net
;; communications error to 193.108.88.1#53: connection reset
$ echo $?
0
What is the current bug behavior?
dig
returns exit code 0
What is the expected correct behavior?
dig
should return exit code != 0
Relevant configuration files
<none>
Relevant logs and/or screenshots
<see above>
Possible fixes
<none>