tcp_connect forces errno to EINVAL if it can solve DNS address.