Handle TCP DNS timeouts and hangs better.