• Michał Kępień's avatar
    dig: return a non-zero exit code for failed TCP EOF retries · 0f168a4b
    Michał Kępień authored and Evan Hunt's avatar Evan Hunt committed
    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.