Please provide valid search domains Please provide a valid domain nameUnspecified error" can be observed while attempting to add Secondary/Alternate DNS server.This issue occurs because the Domain name and Search Domain fields are mandatory parameters for the TCP/IP stack. If these fields are left blank when updating the DNS settings, input validation fails and prevents the new configuration from saving.
To resolve this issue, configure DNS settings for Default TCP/IP stack using one of the following methods:
Method 1: Using vSphere Client (UI)
vSphere Client as an administrator (e.g., [email protected]).Hosts and Clusters and select the ESXi host.Configure tab.Networking, select TCP/IP configuration.Default TCP/IP stack).Edit settings.OK. vCenter will now accept and save the configuration update.Method 2: Using ESXi Shell or SSH
root user. To enable ESXi shell, refer: Using ESXi Shell in ESXiesxcli network ip dns server listesxcli network ip dns server add -s <DNS_IP_Address>esxcli network ip dns server remove -s <DNS_IP_Address>/etc/init.d/hostd restart && /etc/init.d/vpxa restartFor additional reference: How to change ESXi host DNS server IP