Symptoms:
While enabling HA on a cluster, get the following error:
VMware ESXi 7.x
VMware ESXi 8.x
The ESXi server under the cluster has wrong DNS server configured, so fails to resolve the vCenter FQDN to download files from vCenter.
Refer Identifying issues with and setting up DNS name resolution on ESXi Server to ensure a working DNS is configured.