Retry on SocketError when calling resolv()