dig: return a non-zero exit code for failed TCP EOF retries
dig retries a TCP query when a server closes the connection prematurely. However, dig's exit code remains unaffected even if the second attempt to get a response also fails with the same error for the same lookup, which should not be the case. Ensure the exit code is updated appropriately when a retry triggered by a TCP EOF condition fails.
Showing
Please register or sign in to comment