The error occurs because the DNS entry ( DNS_2) contains a leading whitespace character at the beginning of the value.
This invalid formatting prevents the system from configuring DNS successfully during the host commissioning process.
Error Message in the SDDC Ui
Description: Configure DNS Server Details on New ESXi HostsProgress Messages: Cannot configure DNS [DNS_1, DNS_2] on host(s) [ESXi_Host_Name]Error: Message: Cannot configure DNS [DNS_1, DNS_2] on host(s) [ESXi_Host_Name]Remediation Message: Please check the DNS [DNS1, DNS_2] configuration on the host(s).Reference Token: 3SK13TCause: All hosts are skipped, failing the workflow.
Operation Manager log in SDDC
xxxx-xx-xxTxx:xx:19.923+0000 ERROR [vcf_xxxxxxxxxxxxxxxxxxxx,xxxx] [c.v.e.s.o.model.error.ErrorFactory,pool-3-thread-5] [3SK13T] DM_HOST_DNS_CONFIGURATION_FAILED Cannot configure DNS [DNS_1, DNS_2] on host(s) [ESXI_Host_FQDN]
com.vmware.evo.sddc.orchestrator.exceptions.OrchTaskException: Cannot configure DNS [DNS_1, DNS_2] on host(s) [ESXI_Host_FQDN]
Hostd logs in the ESXI Host
xxxx-xx-xxTxx:xx:20.659Z In(166) Hostd[xxxxxxxx] [Originator@6876 sub=Solo.Vmomi opID=xxxxxxxxx sid=5291c61b user=svc-vcf-esxi-xxx-xxxx] "DNS_1",
xxxx-xx-xxTxx:xx:20.659Z In(166) Hostd[xxxxxxxx] [Originator@6876 sub=Solo.Vmomi opID=xxxxxxxxx sid=5291c61b user=svc-vcf-esxi-xxx-xxxx] " DNS_2"
VMware Cloud Foundation
During brownfield imports or in certain scenarios within SDDC Manager, an additional whitespace may be introduced in the DNS configuration.
This whitespace can appear either in the primary or secondary DNS entry.
Since the UI may not always allow the removal of this invalid entry, the DNS must be corrected at the PostgreSQL database level.
Contact VMware by Broadcom support for assistance.