Re-resolve IP address from DNS name after connection failure

Re-resolve IP address from DNS name after connection failure to cope with changed IP address.